Hi Im trying to create an if statement that has one option if button nr 1 is pressed and one option when button nr s is pressed. Im working with Xcode 6 and swift.
Here's the code i've tried so far:
if myButton.touchInside = true {
//Do something
}else{
//Do something else
}
Aucun commentaire:
Enregistrer un commentaire