Return to Snippet

Revision: 26206
at April 20, 2010 17:11 by espinallab


Initial Code
//Call it like this  
NSString * selectedCategory = [self getTitleForSelectedSegment:segmentedControl];

- (NSString *) getTitleForSelectedSegment: (UISegmentedControl *) segment {
	return [segment titleForSegmentAtIndex:[segment selectedSegmentIndex]];
}

Initial URL
http://www.iphonedevsdk.com/forum/iphone-sdk-development/11100-uisegmentedcontrol-setselectedsegmentindex.html

Initial Description

                                

Initial Title
Get the Title of a UISegmentedControl

Initial Tags

                                

Initial Language
Objective C