当我使用我的应用程序,并且我按下iphone屏幕下方的后退圆按钮时,它会退出应用程序。 正如你所期望的那样。
如果我然后按下应用程序图标,应用程序会再次加载该应用程序,无论我在哪个屏幕上。 而不是在主菜单重新开始。
有一些设置允许这个吗? 有没有办法禁用导致应用程序以这种方式行事的内容。
电话是3gs,操作系统版本是4.x.
谢谢 - 代码
When i am using my app, and i press the back round button below the screen of the iphone, it exits the app. As you would expect.
If i then press the app icon the app loads up again, at whatever screen I was at in the app. Rather than starting again fresh at the Main Menu.
Is there some setting that allows this? Is there someway to disable whatever it is that causes the app to act in this way.
Phone is a 3gs and the OS version is 4.x.
Thanks -Code
最满意答案
从iOS 4开始,应用程序默认在后台运行,除非您在Info.plist文件中另行指定。
按下主页按钮时要终止应用程序,请将其放置在Info.plist文件中:
UIApplicationExitsOnSuspend并将值设置为YES
http://developer.apple.com/library/ios/#documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW1
As of iOS 4, applications run in the background by default, unless you specify otherwise in your Info.plist file.
To kill the application when you press the Home button, place this in your Info.plist file:
UIApplicationExitsOnSuspend and set the value to YES
http://developer.apple.com/library/ios/#documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW1
更多推荐
发布评论