iOS4的多任务下支持的内容

本文介绍了iOS4系统中多任务支持的功能,包括后台音频、VoIP、位置服务等,并解释了快速应用程序切换和任务完成机制。同时提到了开发者需要在plist文件中进行相应配置才能启用这些功能。
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分钟如果还没执行完,系统就是自动结束程序。


苹果的多任务还是限制很多的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值