开发者

how to make download of different files from one nsurlconnection

开发者 https://www.devze.com 2023-01-17 10:50 出处:网络
I am having a single file with 5 url to download 5 differ开发者_JAVA百科ent files. What I am doing is calling the method which will change the url and make another call to download the file. how shoul

I am having a single file with 5 url to download 5 differ开发者_JAVA百科ent files. What I am doing is calling the method which will change the url and make another call to download the file. how should it be ideally ? My requirement is sequential download of file.


Try this.. Custom classes implemented by leonho.


You need to use multiple NSURLConnections. When one download finishes, start the next.

Don't worry about "overhead"; AFAIK NSURLConnection reuses TCP connections where possible.

0

精彩评论

暂无评论...
验证码 换一张
取 消