-(IBAction)switchChaneged:(id)sender{
UISwitch *mySwitch = (UISwitch *) sender;
BOOL yn = mySwitch.isOn;
[leftSwitch setOn:yn animated:YES];
[rightSwitch setOn:yn animated:YES];
}
UISwitch *mySwitch = (UISwitch *) sender;
BOOL yn = mySwitch.isOn;
[leftSwitch setOn:yn animated:YES];
[rightSwitch setOn:yn animated:YES];
}
留言
張貼留言