You are supposed to have an action:
-(IBAction) segmentedControlIndexChanged;
In the last link I posted you could find an example of this method. In the example they change a text in a label.
If you wish you can save selectedSegmentIndex in this method.