Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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"
    }  
}
 
PREVIOUS NEXT
Tagged: #switches #xcode
ADD COMMENT
Topic
Name
5+9 =