Created
September 22, 2015 06:50
-
-
Save rakkang/9f1636ae9366b4a75a7c to your computer and use it in GitHub Desktop.
避免 block 循环引用
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
// 避免 block 循环引用 | |
__weak id <JumpActionDelegate> soft_delegate = _jumpDelegate; | |
mCategoryAdapter.onCategoryItemClick = ^(NSString *category_id) { | |
[soft_delegate jumpToCategoryList:category_id]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment