美文网首页
tableView 加载数据完成的判断

tableView 加载数据完成的判断

作者: 啷里个啷里个啷个里个啷 | 来源:发表于2017-04-20 18:35 被阅读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];

});

}

}

相关文章

网友评论

      本文标题:tableView 加载数据完成的判断

      本文链接:https://www.haomeiwen.com/subject/xmglzttx.html