PDA

View Full Version : UISegmentedController: changing selected segment programmatically




milktooth
Oct 30, 2009, 03:59 PM
How do I change the selected segment?



dejo
Oct 30, 2009, 04:12 PM
How do I change the selected segment?
1. It's actually a UISegmentedControl
2. Read the UISegmentedControl Class Reference (http://developer.apple.com/IPhone/library/documentation/UIKit/Reference/UISegmentedControl_Class/Reference/UISegmentedControl.html).
3. Pay close attention to the Properties section.
Hope that helps.

milktooth
Oct 30, 2009, 04:53 PM
Thanks for the help.

Turns out I was doing it right all along. Not sure what went wrong but removing and reconnecting the outlet in IB did the trick.