UITableView 行异步加载 [英] UITableView rows load asynchronously
问题描述
在应用启动时,我想显示 10 行,在底部再加载 15 个",点击Load 15 more",接下来的 15 行应该添加到表格的底部并再次显示Load 15 more",直到找不到行.注意:我正在使用 php 将表数据加载为 xml 提要.如果有人有任何教程/示例代码,请将链接发送给我
On launch of app, i want to show 10 rows, at the bottom "Load 15 more", on click on "Load 15 more" the next 15 rows should add to the bottom of the table and again show "Load 15 more", until no rows found. note: I am using php to load table data as an xml feed. If anyone has any tutorial/sample code pl send me the link
推荐答案
我写了一些可能对你有用的东西:https://github.com/nmondollot/NMPaginator
I wrote something that might be useful to you : https://github.com/nmondollot/NMPaginator
它封装了分页,并且适用于几乎所有的 Web 服务.它还具有 UITableView,当您向下滚动时会自动获取下一个结果.
It encapsulates pagination, and works with pretty much any webservice. It also features a UITableView with automatic fetching of next results as you scroll down.
这篇关于UITableView 行异步加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!