错误ID
ListViewController.m:135:10: Capturing 'self' strongly in this block is likely to lead to a retain cycle
开了ARC
[_tableView setPullToRefreshHandler:^{ [self dataDidRefresh:nil]; }];
PHP中文网2017-04-17 11:19:15
你把self转换一下加上block字段之后就不会被retain了
__block ViewController *controller = self;
[_tableView setPullToRefreshHandler:^{
[controller dataDidRefresh:nil];
}];