I have the following code:
button.addTarget(self, action: "buttonIsPressed:", forControlEvents: .TouchDown)
Why do I need the ":" after the string for action?
Aucun commentaire:
Enregistrer un commentaire