Reputation: 16051
How do i change the value of a segmented control through code?
Upvotes: 3
Views: 7273
Reputation: 12490
You can change the segment control value by using property selectedSegmentIndex
For Ex. segmentedControlObject.selectedSegmentIndex=1;
For Tutorial you can refer this
Upvotes: 0
Reputation: 8759
UISegmentedControl *cont;
.....
cont.selectedSegmentIndex = 4; //Selected index you want;
Upvotes: 15