UITableView load more when scrolling to bottom like Facebook application

后端 未结 18 2184

I am developing an application that uses SQLite. I want to show a list of users (UITableView) using a paginating mechanism. Could any one please tell me how to load more dat

18条回答
  •  伪装坚强ぢ
    2020-11-27 09:40

    Use limit and offset in your queries and fill your tableview with that content. When the user scrolls down, load the next offset.

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

提交回复
热议问题