UITableView Detecting Last Cell

前端 未结 8 743
广开言路
广开言路 2021-01-31 10:46

How can I detect when a UITableView has been scrolled to the bottom so that the last cell is visible?

8条回答
  •  北恋
    北恋 (楼主)
    2021-01-31 11:38

    Implement the tableView:willDisplayCell:forRowAtIndexPath: method in your UITableViewDelegate and check to see if it's the last row.

提交回复
热议问题