gpt4 book ai didi

iphone - 如何在 iOS 4 上禁用快速应用程序切换(多任务处理)?

转载 作者:技术小花猫 更新时间:2023-10-29 10:14:07 25 4
gpt4 key购买 nike

在 iOS 4 中,当用户按下主页按钮时,正在运行的应用程序将保存当前状态并转到后台。但是我正在开发一个应用程序,我不希望它进入后台。我希望它自杀,就像在 iOS 3 及之前的版本中一样。我该怎么做?谢谢。

最佳答案

参见 Opting Out of Background Execution 中的“iOS Application Programming Guide” :

"...you can explicitly opt out of the background execution model by adding the UIApplicationExitsOnSuspend key to your application’s Info.plist file and setting its value to YES."

关于iphone - 如何在 iOS 4 上禁用快速应用程序切换(多任务处理)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4138368/

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