简体   繁体   中英

Pause/Resume download functionality for iPhone

I want to implement a download manager in iPhone. Now it appears that it iPhone SDK esp NSURLConnection does not support Pause/Resume functionality if the server does not support the Range headers.

I don't want to use external libraries like ASHTTPRequest.

Is there any way I could support resuming of an application from where it was stopped

Why build something from scratch that has been build before? ASIHTTPRequest can handle this sort of thing perfectly, there is no need for you to reinvent the wheel. If you do enjoy such a thing, perhaps take a peek at how they do it (it's open source you know).

If the server doesn't support the range headers, it won't be able to send partial data and so you won't be able to resume from where it was stopped.

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