__weak typeof(self) weakSelf = self;
写block里面的时候调用self的时候用这个
一般情况写宏定义
#define ZZWeakSelf __weak typeof(self) weakSelf = self
防止如block的循环引用
__weak typeof(self) weakSelf = self;
写block里面的时候调用self的时候用这个
#define ZZWeakSelf __weak typeof(self) weakSelf = self
防止如block的循环引用
本文标题:记录个__weak typeof(self) weakSelf
本文链接:https://www.haomeiwen.com/subject/eaecnttx.html
网友评论