如何在iOS 4上禁用快速应用程序切换(多任务处理)? [英] How to disable fast application switching (multitasking) on iOS 4?

查看:80
本文介绍了如何在iOS 4上禁用快速应用程序切换(多任务处理)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In iOS 4, when a user presses the Home button, the running app will save the current state and go to background. However I'm developing an app and I don't want it to go to the background. I want it to kill itself, just like in iOS 3 and before. How can I do it? Thanks.

推荐答案

参见退出后台执行 iOS应用程序编程指南


...您可以明确选择退出
后台执行模型将 UIApplicationExitsOnSuspend
添加到应用程序的 Info.plist 文件
,将
设置为 YES

这篇关于如何在iOS 4上禁用快速应用程序切换(多任务处理)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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