防止出现 Capturing 'self' strongly in this block is likely to lead to a retain cycle [duplicate]

来源:互联网 发布:mac 系统怎么翻墙 编辑:程序博客网 时间:2024/06/11 18:31

__weak typeof(self) weakSelf = self;

然后需要self.的地方 变成weakself

0 0