How can I get the text value of a segment in a UISegmentedControl?
+3
A:
[segment titleForSegmentAtIndex:segment.selectedSegmentIndex];
Kevin Sylvestre
2010-03-22 01:22:37
Thanks! It works perfectly
Matt S.
2010-03-22 01:49:52
+2
A:
[segmentedControl titleForSegmentAtIndex:int];
For the current selected index
[segmentedControl titleForSegmentAtIndex:[segmentedControl selectedSegmentIndex]];
Brandon Bodnár
2010-03-22 01:22:38
@Matt S. No problem. I think he beat me by one second anyways. :)
Brandon Bodnár
2010-03-22 01:51:28