@interface ViewController : UIViewController { IBOutlet UISwitch *onOffSwitch; UIDatePicker *myPicker; } -(IBAction)onOffSwitch:(id)sender; @end