tableView 加载数据完成的判断
2017-04-20 本文已影响0人
啷里个啷里个啷个里个啷
- (void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
if([indexPath row] == ((NSIndexPath*)[[tableView indexPathsForVisibleRows] lastObject]).row){
dispatch_async(dispatch_get_main_queue(), ^{
//end of loading
//for example [activityIndicator stopAnimating];
});
}
}