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

来源:互联网 发布:mac 系统怎么翻墙 编辑:程序博客网 时间:2024/09/21 08:42

__weak typeof(self) weakSelf = self;

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

0 0
原创粉丝点击