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