UIApplicationExitsOnSuspend我缺少的其他东西? [英] UIApplicationExitsOnSuspend anything else I'm missing?

查看:239
本文介绍了UIApplicationExitsOnSuspend我缺少的其他东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我知道这已被打死,但我仍然无法找到解决方案。

So I know this has been beaten to death but I still can't figure out a solution.

我的UIApplicationExitsOnSuspend设置为 < true /> 在Info.plist中,仍然在模拟器和iPhone 4设备上,应用程序进入待机状态而不是终止?

I have my UIApplicationExitsOnSuspend set to <true/> in the Info.plist and still both in the simulator as well as on an iPhone 4 device, the app goes into standby instead of terminating?

还有什么想法可以让它终止吗?也许我需要从应用代理中删除哪些方法?任何想法?

Any ideas of what else could one do to get it to terminate? Perhaps are there methods that I need to remove from the app delegate? Any ideas?

推荐答案

你做了一个干净的构建,从模拟器和设备中删除应用程序,然后重新安装?这是影响它的唯一关键。此外,请确保使用设置为iOS 4.0的基本SDK构建。

Did you do a clean build, delete the app from both the simulator and the device, and re-install? That's the only key that affects it. Also, make sure you are building with base SDK set to iOS 4.0.


UIApplicationExitsOnSuspend (布尔 - iOS)指定应该终止应用程序而不是在退出时将其移动到后台。与iPhone SDK 4.0或更高版本链接的应用程序可以包含此密钥并将其值设置为YES,以防止自动选择后台执行和应用程序暂停。当此键的值为YES时,应用程序将终止并从内存中清除,而不是移至后台。如果此键不存在,或者设置为NO,则应用程序将照常移动到后台。

UIApplicationExitsOnSuspend (Boolean - iOS) specifies that the application should be terminated rather than moved to the background when it is quit. Applications linked against iPhone SDK 4.0 or later can include this key and set its value to YES to prevent being automatically opted-in to background execution and application suspension. When the value of this key is YES, the application is terminated and purged from memory instead of moved to the background. If this key is not present, or is set to NO, the application moves to the background as usual.

这篇关于UIApplicationExitsOnSuspend我缺少的其他东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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