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 ther开发者_Python百科e 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.
精彩评论