gpt4 book ai didi

ios - 使用 iOS 应用程序以编程方式终止进程? (应用商店中的示例)

转载 作者:行者123 更新时间:2023-11-29 04:34:44 25 4
gpt4 key购买 nike

我对 iOS 沙盒如何实现这一点感到相当困惑,但 App Store 中似乎有一个应用程序可以做到这一点:Dual Core System Activity Monitor for iPhone 4S

根据Developer Website这个应用程序可以:

Stop Apps:
Use the Stop Apps button to quickly free up memory. Tap the button and dismiss the dialog multiple times to free up additional memory each time. You do not actually need to double press the Home button to kill the apps.

我能够获取使用其 pid 运行的进程列表。我想,我如何通过终止进程或其他应用程序来“释放内存”?

注意:虽然我打算向 App Store 提交这个特定项目,但我仍然有兴趣知道这是如何在越狱手机上完成的(如果这是您的专长的话)。另外,我确信阅读本文的其他程序员也可以从这些知识中受益。

最佳答案

我认为这是一个骗局应用程序..如果您需要更多内存,iOS 有责任终止进程。

您可以读取进程列表,然后虚拟地终止它们(从 TableView 或其他内容中删除它们),但实际上并不终止进程本身。

关于ios - 使用 iOS 应用程序以编程方式终止进程? (应用商店中的示例),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11213771/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com