Download data in background with iOS4(使用 iOS4 在后台下载数据)
问题描述
根据 Kindle V2.5 的最新更新,它支持在iOS 4设备上应用在后台时继续下载书籍".
As per the latest update of Kindle V2.5, it has support of "continue downloading books while the app is in the background on iOS 4 devices".
如何在后台下载内容?根据 iOS 多任务文档, 只有音频、voip &可以在后台进行位置更新.而且我还确保 NSURLConnection 在应用程序进入后台时不会下载新数据工作.那么 Kindle 应用怎么可能呢?
How is it possible to download content in background? As per the iOS multitasking documentation, only audio, voip & location updates are possible in background. And I've also maken sure that NSURLConnection doesn't download new data work while app goes background. Then how's it possible with Kindle app?
我没有在 iOS4 多任务设备中检查 Kindle 应用程序.因此,如果有人让我(和社区)知道 Kindle 应用程序到底要下载什么,那将非常有帮助.
I haven't checked Kindle App in iOS4 multitasking enabled device. So if anyone let me (& community) know what exactly Kindle app does to download, that would be very much helpful.
推荐答案
是的,你可以.返回您提到的文档,并检查在后台完成有限长度任务部分的代码.通过这种方式,您可以在后台运行通用任务,包括访问网络和上传文件.
Yes you can. Go back to the document you mentioned, and check the code at the Completing a Finite Length Task in the Background section. In this way you can run generic tasks in the background, including accessing the network and uploading files.
已我之前在 SO 上回答过类似的问题,请检查一下,iphone - 在后台连接到服务器
Edited: I answered a similar question on SO before, check this, iphone - Connecting to server in background
这篇关于使用 iOS4 在后台下载数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 iOS4 在后台下载数据


基础教程推荐
- 固定小数的Android Money Input 2022-01-01
- 使用 Ryzen 处理器同时运行 WSL2 和 Android Studio 2022-01-01
- 如何使 UINavigationBar 背景透明? 2022-01-01
- 在 iOS 上默认是 char 签名还是 unsigned? 2022-01-01
- “让"到底是怎么回事?关键字在 Swift 中的作用? 2022-01-01
- Android文本颜色不会改变颜色 2022-01-01
- LocationClient 与 LocationManager 2022-01-01
- Android ViewPager:在 ViewPager 中更新屏幕外但缓存的片段 2022-01-01
- :hover 状态不会在 iOS 上结束 2022-01-01
- 如何使用 YouTube API V3? 2022-01-01