#define weakSelf(weakSelf) __weak __typeof(&*self)weakSelf = self;
//block 中使用weakSelf
weakSelf(wkSelf);
#define weakSelf(weakSelf) __weak __typeof(&*self)weakSelf = self;
//block 中使用weakSelf
weakSelf(wkSelf);
转载于:https://www.cnblogs.com/allen123/p/4602276.html