且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何以编程方式关闭iPhone应用程序中的所有其他应用程序?

更新时间:2022-12-22 12:37:24

否.所有应用程序都在沙盒中运行,因此您无法在它们之间进行通信.即使从技术上来讲您也可以将其视为不良做法.

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.