📅  最后修改于: 2022-03-11 15:00:59.199000             🧑  作者: Mango
@IBAction func switchO(_ sender: Any) {
if ((sender as AnyObject).isOn == true) {
labelO.text = "Yes I Do" } else {
labelO.text = "No I Do Not"
}
}