📜  切换 xcode - Swift 代码示例

📅  最后修改于: 2022-03-11 15:00:59.199000             🧑  作者: Mango

代码示例1
@IBAction func switchO(_ sender: Any) {
        if ((sender as AnyObject).isOn == true) {
        labelO.text = "Yes I Do" } else {
        labelO.text = "No I Do Not"
    }  
}