views:

20

answers:

1

I want to initialize my uisegement control to the second option. So when a button is clicked I want to set the uisegement control control to option 2.

+2  A: 
- (IBAction)buttonPressed {
    mySegmentedControl.selectedSegmentIndex = 1; // 2nd item
}
jtbandes