-(IBAction)switchChanged:(UISwitch*)sender
{
BOOL setting=sender.isOn;
[self.leftSwitch setOn:setting animated:YES];
}
还不太能够理解OC,请教一下前辈们:
sender.isOn改成sender.on,可以吗?
{
BOOL setting=sender.isOn;
[self.leftSwitch setOn:setting animated:YES];
}
还不太能够理解OC,请教一下前辈们:
sender.isOn改成sender.on,可以吗?