我需要终止在 iPad 上运行的用户应用程序,同时我的应用程序仍在运行
来发现IOS系统的功能,所以我想知道是否有某种方法可以获取我的设备上运行的所有进程的列表: Iphone、Ipad 或 Ipod。然后我想使用PID列表或进程ID列表来迭代它并杀死它们,一一杀死它们,但只杀死某些进程,特别是那些由用户启动并且不是系统关键进程的进程。 我从 XCODE 文档中找到了一些关于如何终止在 MAC OS 上运行的进程的示例,但没有找到有关 IOS 的信息,我不知道开始搜索的起点,也不知道我需要寻找的 IOS 框架是什么。
Possible Duplicate:
How can I programmatically close all other applications from my iPhone application?
I am developing a test application to discover the capabilities of IOS system, so I would like to know if there is some way where I can get the list of all processes running on My DEVICE said it: Iphone, Ipad or Ipod. Then I would like to use the PID List or Process Id list to iterate over it and Kill them all, one by one but only certain processes specially those which were started by the user and aren't critical process of the system.
I have found some example from XCODE documentation about how to kill processes running on MAC OS but nothing about IOS, I dont know the starting point to begin my searching, or what is the IOS framework I need to seek.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不能,iOS 根本不允许你访问其他应用程序。
You can't, iOS doesn't allow you to access other applications at all.