简体   繁体   中英

How to pause and resume downloading in iphone app?

By using default NSURLConnection and its delegate methods we can easily download the files. while downloading if internet connection is not available the downloading process has to be paused & after connection established resume the downloading..

Can any one explain me how can I implement this, and If you have any sample code relating to the pause, resume downloading. If it is in Objective-c, or C is better.

Take a look to ASIHTTPRequest

Resuming interrupted downloads

As of v0.94, ASIHTTPRequest can resume partial downloads.

Edit:

Cancelling an asynchronous request

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM