How to implement didReceiveMemoryWarning?

前端 未结 6 1891
一生所求
一生所求 2020-11-30 19:38

I have developed a simple location aware iPhone application which is functionally working very well to our expectations except in the low memory condition of the phone .

6条回答
  •  感动是毒
    2020-11-30 20:16

    It's up to you to decide what to do in didReceiveMemoryWarning. The OS is telling you that memory is low, and you need to free up as much as you can as soon as you can. The idea is that you should free any cached data, unload views that aren't visible, etc. The details are application specific.

提交回复
热议问题