I am doing something like this: (i am repeating elements just for the sake of showing a lot of elements)
NSArray *titles = [NSArray arrayWithObjects:[@"YES" uppercaseString], [@"NO" uppercaseString],[@"YES" uppercaseString], [@"NO" uppercaseString],[@"YES" uppercaseString], [@"NO" uppercaseString],[@"YES" uppercaseString],[@"YES" uppercaseString], nil];
URBSegmentedControl *control = [[URBSegmentedControl alloc] initWithItems:titles];
control.frame = CGRectMake((self.view.frame.size.width/2)-100, 5, 200.0, [titles count]*80);
From element 0 to element 4 i can select without problems.. but 5,6 and 7 its unselectable.. but if i change size from 80 to 40 .. it all works..
I cant find the reason for this !
I am doing something like this: (i am repeating elements just for the sake of showing a lot of elements)
NSArray *titles = [NSArray arrayWithObjects:[@"YES" uppercaseString], [@"NO" uppercaseString],[@"YES" uppercaseString], [@"NO" uppercaseString],[@"YES" uppercaseString], [@"NO" uppercaseString],[@"YES" uppercaseString],[@"YES" uppercaseString], nil];
URBSegmentedControl *control = [[URBSegmentedControl alloc] initWithItems:titles];
control.frame = CGRectMake((self.view.frame.size.width/2)-100, 5, 200.0, [titles count]*80);
From element 0 to element 4 i can select without problems.. but 5,6 and 7 its unselectable.. but if i change size from 80 to 40 .. it all works..
I cant find the reason for this !