I know I can use dataTaskWithURL:completionHandler:
to get the data in the completionHandler block, but that blocks the delegate methods from firing, and I need the didReceiveData:
method to fire, as it's how I configure my progress indicator.
I'm completely at a loss how to get the downloaded data once it's complete. What's the delegate method equivalent of the completion block? didCompleteWithError
doesn't seem to return any NSData
.
I don't have to manually piece the data together in didReceiveData
, do I? That seems really lame when the completionHandler just hands it off to you. I wouldn't mind doing that if it weren't for the fact that I could be downloading 50+ things at once, so keeping track of all that partial data seems like a pain in the ass. Should I just switch to NSURLSessionDownloadTask
?