在程式碼塊中使用物件的成員時(成員變數是屬性strong,MRC估計是retain時效果一樣,使用方法時也一樣):
警告:
capturing self strongly in this block is likely to lead to a retain cycle
意思應該是block會retain一次,所以使用前最好 __block MyClass* bObject = self;
__block KKHomePageVC* bObject = self; [_table addLegendHeaderWithRefreshingBlock:^{ //[_table.header endRefreshing]; [bObject requestData]; [bObject requestARlist]; }];