Get the Title of a UISegmentedControl
Copy this code and paste it in your HTML
//Call it like this
NSString * selectedCategory
= [self getTitleForSelectedSegment
:segmentedControl
];
- (NSString *) getTitleForSelectedSegment
: (UISegmentedControl
*) segment
{ return [segment titleForSegmentAtIndex:[segment selectedSegmentIndex]];
}
URL: http://www.iphonedevsdk.com/forum/iphone-sdk-development/11100-uisegmentedcontrol-setselectedsegmentindex.html
Report this snippet
Comments
Subscribe to comments