如何使用call api在UITableView中進行分頁(加載更多數據,如facebook)? 代碼: -如何使用call api在uitableview中進行分頁?
-(void)scrollViewDidScroll:(UIScrollView *)scrollView
{
CGFloat height = scrollView.frame.size.height;
CGFloat contentYoffset = scrollView.contentOffset.y;
CGFloat distanceFromBottom = scrollView.contentSize.height - contentYoffset;
if(distanceFromBottom < height)
{
[self fetchNewsFeeds:[filteredArray count]+1 withLimit:20];
NSLog(@"end of the table");
}
}
滾動高達內容高度後不能調用API
搜索:「負載越來越懶加載與表視圖」 –
你實際上是什麼感覺問題@Bhavesh Rathod –
https://github.com/MrAlek/AWPagedArray,它會給你全部的東西。 –