IOS block 对象强引用和弱引用
摘要:1. 在block外面这样:__weak MyController *weakSelf = self 或者 __weak __typeof(self) weakSelf = self;是为了防止强引用导致循环引用2.执行block方法体的时候也可以转换为强引用之后再使用__strong __type
阅读全文
posted @ 2016-12-21 07:44
posted @ 2016-12-21 07:44
posted @ 2016-12-21 07:41
posted @ 2016-12-09 07:08