试UIApplicationExitsOnSuspend是否正常

试UIApplicationExitsOnSuspend是否正常

本文介绍了iPhone:如何测试UIApplicationExitsOnSuspend是否正常工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将UIApplicationExitsOnSuspend设置为boolean并选中了复选框,因此我认为是

I set the UIApplicationExitsOnSuspend to boolean and checked the checkbox, so I assumed that

- (void) applicationDidEnterBackground:(UIApplication *)application

没有被调用-但是当我单击模拟器中的home按钮时,我总是会进入该方法.我是在做错什么,还是可以确定该应用将表现出旧样式"并且不支持多任务处理?

is not called - but I always get into that method when I click the home button in my simulator. Am I doing something wrong or can I be sure that the app will behave the "old style" and does not support multitasking?

非常感谢

Stefan

在此级别定义的设置
体系结构:标准
基本SDK:iPhone模拟器4.0
代码签名身份:iPhone开发人员:myName
任何iPhone操作系统设备:iPhone开发人员:myName
iPhone OS部署目标:iPhone OS 3.1
其他链接器标志:-lxml2
预装订:未选择
标头搜索路径:/usr/include/libxml2
C语言方言:C99 [-std = 99]
返回类型不匹配:已选择
未使用的变量:已选择

Settings defined at this level
Architectures: Standard
Base SDK: iPhone Simulator 4.0
Code Signing Identity: iPhone Developer: myName
Any iPhone OS Device: iPhone Developer: myName
iPhone OS Deployment Target: iPhone OS 3.1
Other Linker Flags: -lxml2
Prebinding: not selected
Header search paths: /usr/include/libxml2
C language dialect: C99 [-std=99]
Mismatched Return Type: selected
Unused variables: selected

推荐答案

我发现要测试这一点的另一个区别是使用iPhone 4 Simulator或连接到Xcode调试器的设备.如果已正确启用它,则在单击主页"按钮时它将退出调试器.如果启用了多任务"功能,则当您按下主页按钮时,调试器将不会退出-触摸您的图标并将其重新带回将继续您的调试会话.

One difference I have found to test this is using the iPhone 4 Simulator or Device connected to the Xcode debugger. If you have it enabled properly, when you hit the home button it will exit the debugger. If "multitasking" is enabled, when you hit the home button, the debugger will not exit - touching your icon and bringing it back will continue with your debugging session.

这篇关于iPhone:如何测试UIApplicationExitsOnSuspend是否正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 23:01