Skip to content
S4cha edited this page Jan 8, 2017 · 1 revision
button.addTarget(self, action: "follow", forControlEvents: .TouchUpInside)

Becomes:

button.tap(follow)

This is shorter and less error-prone since follow is is not referenced by a string value anymore \o/

Clone this wiki locally