如何在iPhone应用程序中支持快速应用程序切换 [英] How do I support Fast App Switching in an iPhone App

查看:120
本文介绍了如何在iPhone应用程序中支持快速应用程序切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序在iPhone OS 3.0或更高版本上运行良好。如何支持快速应用切换?它应该在iPhone OS 3.0上工作,但支持iOS 4.0上的快速应用程序切换。

I have an app that works well on iPhone OS 3.0 or higher. How do I support fast app switching in it? It should work as is on iPhone OS 3.0 but support fast app switch on iOS 4.0.

Anupam

推荐答案

将Base SDK设置为4.0,将Deployment Target设置为3.0。快速应用切换现在应该可行。

Set the Base SDK to 4.0 and the Deployment Target to 3.0. Fast app switching should now work.

为了让你的应用程序在后台运行正常并确保你足够早地保存你的状态,你必须阅读并遵循关于iPhone中多任务处理的章节完整的应用程序编程指南,尤其是支持后台状态转换成为负责任的,多任务处理的应用程序

To make your app behave properly when it is in the background and make sure you save your state early enough, you have to read and follow the chapter about multitasking in the iPhone Application Programming Guide completely, especially Supporting Background State Transitions and Being a Responsible, Multitasking-Aware Application.

这篇关于如何在iPhone应用程序中支持快速应用程序切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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