开发者

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]];

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜