iOS tableView 加载到最后一行之后再刷新一次页面方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/saw471/article/details/83218738
    //    tableview 加载完成可以调用的方法

    -(void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath

    {

        if([indexPath row] == ((NSIndexPath*)[[tableView indexPathsForVisibleRows]lastObject]).row){
            //end of loading

              dispatch_async(dispatch_get_main_queue(), ^{
    //
    //
    //
    //                        self.detailListView.frame
    //            = CGRectMake(self.detailListView.frame.origin.x,self.detailListView.frame.origin.y,MAIN_WIDTH,
    //                         tableView.contentSize.height);

    //            [tableView reloadData];


                        });

                }

    }

猜你喜欢

转载自blog.csdn.net/saw471/article/details/83218738