UItableView load data on scroll

后端 未结 6 751
予麋鹿
予麋鹿 2020-12-24 03:42

In my app I am getting the data from the web-service and I have to display it in UITableView. But the condition here is I have to display only 10 records initially,then once

6条回答
  •  难免孤独
    2020-12-24 04:16

    If I correctly understand your question ,you can do the following.

    1 ) implement scrollViewDidScroll

    2 ) check for visible rows in that

    3 ) if you found the last row just call the web service for loading more data

    4 ) on getting the data just reload the table

    Try it .

提交回复
热议问题