摘要: 再block中使用 self 时,要在前面加上__block。防止在block中用到self时把self对象retain, 造成内存泄露。__block UIViewController *safeSelf = self;[{ safeSelf.button = button; // __bloc... 阅读全文
posted @ 2015-10-13 15:12 xiao孛 阅读(308) 评论(0) 推荐(0)