如何实现“加载更多记录”在iPhone SDK的TableView中? [英] How to implement "Load More Records" in TableView in iPhone SDK?

查看:91
本文介绍了如何实现“加载更多记录”在iPhone SDK的TableView中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据库表中有10,000行。我有一个视图,假设在tableview中列出所有这些行。但是在一次拍摄中加载所需的时间需要很长时间才会出现在tableview

I have 10,000 rows in database table. I have a view which is suppose to list all these rows in a tableview. But loading all in one shot takes ages to appear in tableview.

我们如何使用加载更多记录功能,一次可以获取20条记录?如果用户想要查看更多条目,他们可以点击加载更多记录按钮,它将显示接下来的20条记录。

How can we use "Load More Records" feature which will fetch 20 records at a time? If user wants to view more entries, they can click "Load More Records" button and it will show next 20 records.

是否必须修改我的select语句?为实现这一目标,我还需要做些哪些更改?

Will have to modify my select statement? What other changes do I have to do to achieve this?

推荐答案

感谢大家的投入。但我能够使用以下链接实现这一点:

Thanks everyone for your inputs. But I was able to implement this using below link:

http://useyourloaf.com/blog/2010/10/2/dynamically-loading-new-rows-into-a-table.html

希望这对所有人都有用。

Hope this is useful to all.

这篇关于如何实现“加载更多记录”在iPhone SDK的TableView中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆