objective c - iOS - How to handle large amount of data from webservice -
i getting large amount of data web service. if amount of records return more 1500 or 2000 memory overflows , app crashes. don't need save data locally, have present data user. how can manage not crash , display whole of data?
the best way go ahead change web service accept page param , return paginated results. make seamless in tableview, can add infinite scrolling - i.e. if user reaches row <last-10>
, send request next set of records , load them in table view.
but this, assuming face memory issues if persist 2k records (your data array) in memory. memory management needed there well.
Comments
Post a Comment