weak & strong self

2016-08-13  本文已影响28人  稻草人的小秘密
__weak __typeof(self)weakSelf = self;
object.block = ^{
    __strong typeof(weakSelf)strongSelf = weakSelf;
    // code here
}

上一篇下一篇

猜你喜欢

热点阅读