生成weakSelf宏

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

 

//block 中使用weakSelf

    weakSelf(wkSelf);

 

posted @ 2015-06-26 14:57  Allen.Ma  阅读(340)  评论(0编辑  收藏  举报