使用iOS4在后台下载数据 [英] Download data in background with iOS4

查看:118
本文介绍了使用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在app变为后台时不会下载新数据。那么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 App。因此,如果有人让我(和社区)知道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上回答了类似的问题,检查一下,< a href =https://stackoverflow.com/questions/4594348/iphone-connecting-to-server-in-background/4594735#4594735> iphone - 在后台连接到服务器

Edited: I answered a similar question on SO before, check this, iphone - Connecting to server in background

这篇关于使用iOS4在后台下载数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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