ios - How to use NSFetchedResultsController for scrolling bottom to top in messaging app? -


i building message app. when messaging in application messages getting store in core data. have connected core data tableviewcontroller nsfetchedresultscontroller. know how work , using nsfetchedresultscontroller long time tableview. in of case tableview load top , it's scroll down load more data on requirement, application works pretty well.

here message app tableview behaviour opposite previous one. loads last messages(20-30 batch size) , if want see old message scroll top. trying implement on nsfetchedresultscontroller.

example : suppose have 100 messages. setting batch size 10. first load 90-100 messages , scroll down last indexpath(here 100th). if want want scroll top , reach 90th indexpath give me 10 again have 80-100 messages won't scroll down keep on doing same thing scroll top.

i know can sort in reverse order time 100-90 won't last message(100) bellow.

so how can fix issue? configuration there nsfetchedresultscontroller missing? how fix?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -