thndrkiss
thndrkiss

Reputation: 4595

how to make download of different files from one nsurlconnection

I am having a single file with 5 url to download 5 different 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.

Upvotes: 0

Views: 235

Answers (2)

tc.
tc.

Reputation: 33592

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.

Upvotes: 1

k-thorat
k-thorat

Reputation: 5123

Try this.. Custom classes implemented by leonho.

Upvotes: 2

Related Questions