如何以编程方式关闭iPhone应用程序中的所有其他应用程序? [英] How can I programmatically close all other applications from my iPhone application?

查看:65
本文介绍了如何以编程方式关闭iPhone应用程序中的所有其他应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过编程方式从我自己的应用程序中关闭iPhone上除我自己之外的所有正在运行的应用程序?如果可以,怎么办?

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

推荐答案

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

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.

这篇关于如何以编程方式关闭iPhone应用程序中的所有其他应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆