Hi guys,
I've been workin on a custom "pop up" view. More or less succeeded. But now i've got something very different.
Uptil now, the popup only shows a single NSString. I divide the strings with @"\n" to get the desired wordwrap effect.
Hence in the popUpView class, in
That gives me the desired results with no problems. Now I wanted to add UIButtons for the capacity to tap.
However, The number of uibuttons isnt fixed, its dynamic and corresponds to an Array count.
What i'd like to do is to have this View check the count of an array and add those many buttons on its view with fixed height, one below another.
But all of them will call one action. "URL Action". with different URLs.
How do I add those buttons? What do i instantiate in header.
I kinda ruled out using TableViews. This suits my app perfectly. If done right.
thanks for the help guys
I've been workin on a custom "pop up" view. More or less succeeded. But now i've got something very different.
Uptil now, the popup only shows a single NSString. I divide the strings with @"\n" to get the desired wordwrap effect.
Hence in the popUpView class, in
Code:
- (void)drawRect:(CGRect)rect {
//After creating the graphic effect, i jus add the following
[dataString drawInRect:textRect
withFont:[UIFont systemFontOfSize:15] lineBreakMode:UILineBreakModeWordWrap alignment:UIBaselineAdjustmentAlignBaselines];
}
However, The number of uibuttons isnt fixed, its dynamic and corresponds to an Array count.
What i'd like to do is to have this View check the count of an array and add those many buttons on its view with fixed height, one below another.
But all of them will call one action. "URL Action". with different URLs.
How do I add those buttons? What do i instantiate in header.
I kinda ruled out using TableViews. This suits my app perfectly. If done right.
thanks for the help guys