设置为开
Objective-C
[mySwitch setOn:YES];
//or
[mySwitch setOn:YES animated:YES];
迅速
mySwitch.setOn(false)
//or
mySwitch.setOn(false, animated: false)
[mySwitch setOn:YES];
//or
[mySwitch setOn:YES animated:YES];
mySwitch.setOn(false)
//or
mySwitch.setOn(false, animated: false)