vendredi 6 mars 2015

Why UIButton.addTarget needs a ":" after the string representing the action?

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