生成weakSelf宏

#define weakSelf(weakSelf) __weak __typeof(&*self)weakSelf = self;

 

//block 中使用weakSelf

    weakSelf(wkSelf);

 

原文地址:https://www.cnblogs.com/allen123/p/4602276.html