memory management - iPhone tableview pagination -


first, please believe me when did search answer first... lot. found many examples, none performing need. though have been searching using wrong key words, don't believe so.

here issue:

i have table view being populated query returning huge amount of data. data list of restaurants, price rating, , id. there many restaurants in database fills memory , crashes app time. (i assuming going on, code works fine if query limited, , has worked on other pages query things don't have data returned.)

what make pagination application's table view page. don't see how use "show more" method, or auto load when scrolled bottom, because if scroll down end of list, still have same issue: filling memory. there way web-like pagination (if not on first page) have "previous" cell @ top , (if not on last page) "next" cell @ bottom? these have clear cells out in current view , drop data we're not adding data cause same issue, new query populate cells.

of course, not expect sit here , write code me. main part need how set cells next , previous cells. should able figure rest out after that, don't know how go clearing data current table view.

thanks or suggestions.

i think can show more method or loading scroll, problem still load bunch data , youll run out of memory, can avoid that... 1 option is, save disk or release data isnt being shown on table view, can use indexpathsforvisiblerows method of uitableview see cells visible, , info should know data can safely release... can either when receive memory warnings, or maybe cells scrolled off screen (up you)...

hope helps

daniel


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -