私有变量: NSString *private
_weak typeof(self) weakSelf = self;
myBlock = ^{
// 私有成员变量避免循环引用方法
__strong typeof(weakSelf) sweakSelf = weakSelf;
sweakSelf -> private = @"这样就不会了";
};
私有变量: NSString *private
_weak typeof(self) weakSelf = self;
myBlock = ^{
// 私有成员变量避免循环引用方法
__strong typeof(weakSelf) sweakSelf = weakSelf;
sweakSelf -> private = @"这样就不会了";
};