如何在iPhone(iOS)中暂停/恢复下载 [英] How to pause/resume downloads in iPhone (iOS)

查看:937
本文介绍了如何在iPhone(iOS)中暂停/恢复下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须下载大量数据(在 300MB - 1GB 之间的任何地方)。

I have to download large amount of data (anywhere between 300MB - 1GB).

我目前正在使用 ** NSURLConnection ** 下载数据。但是,现在我正在看一下在下载过程中用户可能会松动互联网连接的场景。目前,我正在重新启动整个下载过程,我认为这是一个非常糟糕的下载方式,浪费用户带宽。

I am currently using **NSURLConnection**to download the data. But, now i am looking at a scenario where the user might loose the internet connection during the download process. Currently i am restarting the entire download process in this scenario, which i think is a very bad way of downloading and a waste of user bandwidth.

是否有

Is there a process in which i can manage the downloads with Pause/Resume functionality while downloading.

推荐答案

这是一个教程如何在IOS上执行此操作。

Here's a tutorial of how to do this on IOS.

另请检查文档。这将需要您的服务器支持范围标题。

Also check documentation. This will require your server to support range headers.

这篇关于如何在iPhone(iOS)中暂停/恢复下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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