How to determine if the user has scrolled to the bottom of the UITableView?

后端 未结 3 1194
夕颜
夕颜 2021-02-14 03:36

How can I determine if the user has scrolled to the last cell/bottom of a UITableView?

3条回答
  •  太阳男子
    2021-02-14 04:03

    Use NSArray *paths = [tableView indexPathsForVisibleRows];. Then check if the last object in that array is the indexPath for the final cell.

    Source: Another Question

提交回复
热议问题