How can I get the title of the selected UISegment in a UISegmentControl?
The class of the selected segment is shown as UISegment, which I ca开发者_StackOverflow中文版n't find a class reference to. Surely there is a way to access the title associated with the selected index?
From UISegmentedControl
documentation:
NSString * selectedTitle = [mySegmentedControl titleForSegmentAtIndex:[mySegmentedControl selectedSegmentIndex]];
精彩评论