ios - Strategy to update UITableView by Parse query -


i have news feed application provides tons of news everyday. there uitableview showing news items in descending chronological order.it shows number (for example, 20 items) per page. when drag tableview, load more items (for example, next page). here comes problem, example:

  • there totally 47 items, 1,2,3,... 47
  • the items per page 20.
  • the first time shows 47,46,45,...28
  • it show 27 ... 8 when drag tableview load more data
  • there more news items updated in server, example, 49,48 added
  • the next time when call "loadmore" in client side. server return 9, 8, ... 1 instead of 7,6, ... 1

the query coding one:(the skip value of total number of items have)

    query.limit = 20     query.skip = skip      query.findobjectsinbackgroundwithblock({ 

any method overcome issue? thanks

add 1 more condition:

query.wherekey("createdat",lessthanorequalto:lastdate) 

probably able solve problem. lastdate date of last record.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -