Created
November 20, 2014 22:52
-
-
Save wolffan/a49d8df45da9c8797610 to your computer and use it in GitHub Desktop.
Weak and strong for iOS blocks
This file contains hidden or 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
//outside Block | |
__weak typeof(self) weakSelf = self; | |
//inside Block | |
__strong typeof(self) strongSelf = weakSelf; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment