Not getting didReceiveMemoryWarning when app is in the background

后端 未结 2 1172
伪装坚强ぢ
伪装坚强ぢ 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: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.

提交回复
热议问题