Is there a way to change the number of segments programmatically?
Yes, you can use
removeSegmentAtIndex:(NSUInteger) animated:(BOOL)
And
insertSegmentWithTitle:(NSString *) atIndex:(NSUInteger) animated:(BOOL)
2.1m questions
2.1m answers
60 comments
57.0k users