Last active
December 14, 2015 13:20
-
-
Save ostholz/94fe3896c963bbffb193 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__weak __typeof(self) weakSelf = self; | |
[self doSomeThingWithBlock:^(void) { | |
if (weakSelf) { | |
__strong __typeof(weakSelf) strongSelf = weakSelf; | |
strongSelf.someProperty = someValue; | |
[strongSelf performSomeMethod]; | |
} | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment