tableView 加载数据完成的判断

- (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];

});

}

}

你可能感兴趣的:(tableView 加载数据完成的判断)