How can I programmatically close all other applications from my iPhone application?

前端 未结 3 1001
后悔当初
后悔当初 2021-01-24 02:37

Is it possible to programmatically close all running applications on the iPhone except my own from within my own application? If so, how?

3条回答
  •  情深已故
    2021-01-24 03:09

    It's not possible and there's also no need to.

    There are very conservative limits on how much processing a background app can use and if the result of low memory warnings is that there still isn't enough memory, the OS will automatically start killing things. Don't try to be clever - it's just as willing to kill you and indeed will kill you first if nothing else is running.

提交回复
热议问题