标签:cycle 解决 使用 strong view str ret retain item
【问题现象】
在block块中使用self时报警告:self strongly in this block is likely to lead to a retain cycle
【问题解决】
__block ViewController *blockSelf = self;
_block = ^{
[blockSelf->_items addObject:@"Hello!"];
};
标签:cycle 解决 使用 strong view str ret retain item
原文地址:http://www.cnblogs.com/ftrako/p/7473098.html