Using Segmented Control

Define in the #ViewController.h file @interface #ViewController_iPhone : UIViewController { IBOutlet UISegmentedControl *mySegmentedControl; } – (IBAction)mySegmentedControlChanged:(id)sender; In the #ViewController.m file – (IBAction)mySegmentedControlChanged:(id)sender { } Connect In Interface Builder Right click Segmented Control, select ‘Value Changed’ and drag button onto ‘Files Owner’, select mySegmentedControlChanged Right click ‘Files Owner’ and select the ‘mySegmentedControl’ outlet and drag onto […]

Read More