Skip to content

Instantly share code, notes, and snippets.

@jeffbailey
Last active January 1, 2016 09:09
Show Gist options
  • Save jeffbailey/8123085 to your computer and use it in GitHub Desktop.
Save jeffbailey/8123085 to your computer and use it in GitHub Desktop.
Weak Self using typeof
__weak typeof(self) weakSelf = self
foo.myBlock = ^{
typeof(self) strongSelf = weakSelf;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment