Can an iOS application receive a memory warning in the background?

后端 未结 1 1841
庸人自扰
庸人自扰 2021-02-03 11:27

When an application is in the background and another application is running and is requiring more memory, can the app in the background receive a memory warning? Or can it only

相关标签:
1条回答
  • 2021-02-03 12:11

    Yes, your application can receive a memory warning while in the background. Your application only gets killed immediately if the system really needs the memory, but it'll play nice and ask your application to return memory on its own first. If the system is satisfied it won't kill your application.

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