views:

141

answers:

1

The class of the selected segment is shown as UISegment, which I can't find a class reference to. Surely there is a way to access the title associated with the selected index?

+4  A: 

From UISegmentedControl documentation:

NSString * selectedTitle = [mySegmentedControl titleForSegmentAtIndex:[mySegmentedControl selectedSegmentIndex]];

Dave DeLong
Fast and just what I needed -- thanks!
Frank