TableView reloading problem

Posted by abdulsamad on Stack Overflow See other posts from Stack Overflow or by abdulsamad
Published on 2010-03-15T11:36:21Z Indexed on 2010/03/15 11:39 UTC
Read the original article Hit count: 215

Filed under:
|
|

Hi All, i am in a very serious problem of tableview reloading.

i have two option in my tableview 1) show next 10 Results 2) show previos 10 results

I wanna show only 50 results at a time in my table view. when table is populated with 50 results after that on pressing "show next 10 results" the results from 1-10 are removed and results from 51-60 are now displayed and hence i have the total results in my table view from 11-60. As the total # of results remain 50 hence i have the cells with their identifier from 1-50 and now they are not nil.

So i also have to code in else block of the condition if(cell == nil) { } else{ Have to write the same code as in if. }
Now my cells are properly reloading on clicking "show next 10" and on clicking "show previous 10" but the problem is that because of the code in else block my cells are also reloaded when the user scrolls the table-view. Kindly give some good suggestion what should i do to get out from this situation.

© Stack Overflow or respective owner

Related posts about tableview

Related posts about reloading