希望应用升级到 4.0 以在按下主页按钮时完全退出 [英] Want app upgraded to 4.0 to exit completely when home button pressed
问题描述
我正在开发适用于 iOS 4.0 的应用程序.该应用程序最初是在 2.2.1 上.我将它升级为通用应用程序,但现在它似乎是多任务处理.当我在运行应用程序时按下菜单按钮,而不是退出它会关闭,但是当我重新启动应用程序时,它会从我离开的地方恢复.我假设这是多任务处理.我要退出,设置里有办法吗?
I am working on an app for iOS 4.0. The app was originally on 2.2.1. I upgraded it to a universal app, but now it seems to be multitasking. When I press the menu button while running the app, instead of exiting it closes, but when I relaunch the app it resumes where I left off. I am assuming this is multitasking. I want it to exit, is there a way in the settings?
我的猜测是 iPad 目标升级以某种方式改变了 plist?有什么想法吗?
My guess is that the iPad target upgrade changed the plist somehow? Any thoughts?
推荐答案
打开你的 info.plist 文件
Open your info.plist file
添加键 UIApplicationExitsOnSuspend 或选择应用程序不在后台运行
Add The Key UIApplicationExitsOnSuspend or Select Application does not run in background
将新键设置为 YES 或填写复选框
Set the new key to YES or Fill in the tick box
这篇关于希望应用升级到 4.0 以在按下主页按钮时完全退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!