在 iPhone 后台下载 [英] Download in background in iPhone
本文介绍了在 iPhone 后台下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在 iPhone 4 中的应用程序处于后台时下载文件?
Is it possible to download a file while the app is in background in iPhone 4?
推荐答案
在 iOS 4.x 下,您可以使用 UIApplication beginBackgroundTaskWithExpirationHandler 请求一些后台时间:并可能在有限的时间内继续文件下载.
Under iOS 4.x, you can use request some background time using UIApplication beginBackgroundTaskWithExpirationHandler: and perhaps continue a file download for a limited period of time.
请参阅 Apple 的文档有关多任务"后台执行的详细信息.
See Apple's document on "multitasking" background execution for details.
这篇关于在 iPhone 后台下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文