Skip to content

Instantly share code, notes, and snippets.

@paulw11
Created September 30, 2015 05:25
Show Gist options
  • Save paulw11/30522b7f61d0a081e520 to your computer and use it in GitHub Desktop.
Save paulw11/30522b7f61d0a081e520 to your computer and use it in GitHub Desktop.
class myClass {
func somethingElse(sender:AnyObject) {
print(sender)
}
func something() {
let myBlock = {
self.somethingElse(self)
}
myBlock()
}
}
let aThing=myClass()
aThing.something()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment