iOS4的多任务只是支持下面几个:
Background audio
Voice over IP
Background location
Push notifications
Local notifications
Task finishing-
If your app is in mid-task when your customer leaves it, the app can now keep running to finish the task.
Fast app switching-
All developers should take advantage of fast app switching, which allows users to leave your app and come right back to where they were when they left - no more having to reload the app.
用的时候还需要在plist文件里面设置一下 找到Required background modes这个选项就能看到需要设置哪些东西了,
有这么三个:App plays audio、App registers for location updates、App provides Voice over IP services。
notifications是不需要设置的。
后台播放好像还有个时间限制,大概是10分钟,10分钟如果还没执行完,系统就是自动结束程序。
苹果的多任务还是限制很多的。
本文介绍了iOS4系统中多任务支持的功能,包括后台音频、VoIP、位置服务等,并解释了快速应用程序切换和任务完成机制。同时提到了开发者需要在plist文件中进行相应配置才能启用这些功能。
6105

被折叠的 条评论
为什么被折叠?



