sqlite - iOS UITableView filling when thousands of items -


I have to fill a TableView with lots of items (20.000 items frol sqlite) but I know that I will give it overload Is there any way to load only the required data during scoring? For example, if I scroll more than 100 then 100 tables should be displayed, should I load 200 table or just load 101 101 items?

-text "itemprop =" text ">

I will fill a TableView with many items (20.000 items frol sqlite) but I know that I will overload it while scrolling only loads the required data What is the way to do that?

UITableView is specially designed to load only cells that are visible to you through the data source of the table Available in the table Do not "fill the table" to create the data. In the form of table scroll, it asks its data source for extra cells, and it re-uses cells that are no longer visible. This memory Reduces usage and maximizes speed to implement the necessary table view data source in your view controller (or some other object) and implement delegation methods Area than you bring cell content for each element in it something to do not need to.

embedded sqlite DB?

Of course, you can do this simply apply your -tableView: cellForRowAtIndexPath: method to create the appropriate SQLite query for the requested cell.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -