单页数据多iOS预加载的方法

- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
    if(indexPath.row == self.allData.count-4){
        if(self.isHasNext == YES){
          [self hotSellFootRefreshing];
        }
    }
}
self.allData为当前所加载到的数据的数量,当滑到倒数第四个数据时候开始走上拉加载的方法。
原文地址:https://www.cnblogs.com/ios988/p/7550310.html