Skip to content

Instantly share code, notes, and snippets.

@jyliang
Created April 18, 2014 22:46
Show Gist options
  • Select an option

  • Save jyliang/11067510 to your computer and use it in GitHub Desktop.

Select an option

Save jyliang/11067510 to your computer and use it in GitHub Desktop.
block weak&strong reference
__weak __typeof(&*self)weakSelf = self;
block = ^(void) {
__strong __typeof(&*weakSelf)strongSelf = weakSelf;
if (!strongSelf) {
return;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment