Problem detecting if UITableView has scrolled to the bottom

后端 未结 3 698
遇见更好的自我
遇见更好的自我 2021-02-14 23:40

I\'m using the following code to detect if I\'ve reached the bottom of a UITableView

- (void)scrollViewDidScroll:(UIScrollView *)scrollView{ 
    if(self.tableVi         


        
3条回答
  •  梦谈多话
    2021-02-15 00:08

    Try to use another algorithm to detect, that you reached the bottom of table view. For example, look at the cellForRowAtIndexPath:(NSIndexPath *)indexPath to the indexPath of a current cell and if the number of row in IndexPath equals to the number of rows in your data array, then you reached a bottom.

提交回复
热议问题