- Three demos to show how to use NSURLConnection, NSURLSession and NSURLConnectionManager ,which is customer encapulastion manager clasee based on NSURLConnection class, to download fils from server.
- NSURLConnectionManager can help us manges multiple download tasks, start and pause download,backgroud download.
Please feel free to use these codes, if you want to use NSURLConnectionManger, then you should add NSURLConnectionManager.h, NSURLConnectionManager.m, NSURLConnectionDownloader.h and NSURLConnectionDownloader.m into your project. And, please import NSURLConnectionManager.h into your class.
I will encapulaste another customer manager class which is based on NSURLSession to download files. And I will try to add multiple threads download feature into this project.
This project is availabel under MIT License.
If you have any interested in this project, and want to konw more information about it please read this article浅谈iOS多任务断点下载
I hope this project can give you a little bit help and it may have many problems about this project, so I am very welcome someone can give me good suggestion.Thanks!