Skip to content

Instantly share code, notes, and snippets.

@leviathan
Last active January 4, 2016 14:58
Show Gist options
  • Save leviathan/8637292 to your computer and use it in GitHub Desktop.
Save leviathan/8637292 to your computer and use it in GitHub Desktop.
__weak __typeof__(self) weakSelf = self;
// some api that takes blocks, when you give the block do
^{
__strong __typeof__(weakSelf) self = weakSelf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment