How to download data from the Internet with the possibility of renewal.

I download content from the server to my application. I use NSUrlConnection to this in response, I get the data, and I save it. But if the user closes the application during download, when he launches the application the next time, I have to resume downloading from where he stops (download the rest). how to support this ... any idea on how to handle this ....

Thanks in advance.

+3
source share
3 answers

, , . connectionDidReceiveResponse, . , , plist .

, , , . , .

. , .

+2

HI. NSURLDownload, . NSRULDownload .

0

So, now from ios5 you can do this with NSURLConnectionDownloadDelegate Protocol, and also you can find some link in this appleDocument

0
source

Source: https://habr.com/ru/post/1745207/


All Articles