美文网首页
防止循环引用

防止循环引用

作者: ten3fang | 来源:发表于2016-11-17 00:18 被阅读14次
__weak __typeof(self)weakSelf = self; 
self.backgroundTaskIdentifier = [application beginBackgroundTaskWithExpirationHandler:^{ 
    __strong __typeof(weakSelf)strongSelf = weakSelf; 
}];

相关文章

网友评论

      本文标题:防止循环引用

      本文链接:https://www.haomeiwen.com/subject/fkqdpttx.html