tableview 上拉順滑加載
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
? ? NSInteger row = [indexPath row];
? ? if (row == self.dataArray.count - 2 && self.isfinish) {
//dataArray是存放數據的數組,isfinish是請求是否完成的標識
? ? ? ? self.pageNum++;//第幾頁
? ? ?//請求參數//具體請求
? ? }
}