开发者

core data and paging

开发者 https://www.devze.com 2023-01-03 17:52 出处:网络
I have a database of 50,000 records.I\'m using core data to fet开发者_如何学Cch records from a search.A search could return 1000 records easily.What is neededto page through these records using core d

I have a database of 50,000 records. I'm using core data to fet开发者_如何学Cch records from a search. A search could return 1000 records easily. What is needed to page through these records using core data and uitableview? I would like to show 100 records at a time and have 'load more' button after viewing 100 records.


Take a look at the NSFetchRequest and its controls over batches. You can set the batch size and the offset which will allow you to "page" through the data.

0

精彩评论

暂无评论...
验证码 换一张
取 消