Answers for "how to detect if there is a switch tap to off state in UISwitch objective c"

1

switches xcode

@IBAction func switchO(_ sender: Any) {
        if ((sender as AnyObject).isOn == true) {
        labelO.text = "Yes I Do" } else {
        labelO.text = "No I Do Not"
    }  
}
Posted by: Guest on April-11-2020

Code answers related to "how to detect if there is a switch tap to off state in UISwitch objective c"

Code answers related to "Swift"

Browse Popular Code Answers by Language