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

前端 未结 3 1004
后悔当初
后悔当初 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:21

    No. All apps run in a sandbox so that you can't communicate between them. And even if you technically could it would be considered bad practice.

    Why do you need to close other apps? I can't think of any valid use case where that would be necessary.

提交回复
热议问题