生成weakSelf宏

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

 

//block 中使用weakSelf

    weakSelf(wkSelf);