Not getting didReceiveMemoryWarning when app is in the background

后端 未结 2 1155
伪装坚强ぢ
伪装坚强ぢ 2020-12-19 05:04

I\'m noticing that my view controllers aren\'t getting their didReceiveMemoryWarning methods called when my application is in the background state on the iPad s

相关标签:
2条回答
  • 2020-12-19 05:34

    I don't think that is the case. I am able to access didReceiveMemoryWarning code while in background. Once system generates low memory signal than as a good citizen we should release the memory. This also helps our app from terminating by the system.

    0 讨论(0)
  • 2020-12-19 05:37

    If you did not start a background task, or do VOIP, location tracking or audio in the background, then your app is suspended after applicationDidEnterBackground. It will not get any notifications. Any notifications are kept around (even those that occur after the app was suspended) and sent to the app when the app goes to the foreground again.

    0 讨论(0)
提交回复
热议问题