I am using NSURLSession + NSURLDownloadTask with completionHandler:
[session downloadTaskWithURL:downloadURL completionHandler:^(NSURL *location, NSURLResponse *response, NSError *error)
it works nice.
But when I want to track download in a progressBar I am running into problems. I am trying to use NSURLSessionDownloadDelegate to track loading. With the upper completionHandler it is never called?!
Using:
NSURLSessionDownloadTask *downloadTask =
[session downloadTaskWithURL:downloadURL];
will call the delegates.
Is there any way to use completionHandler AND delegates?
Or any other way to track download while using completionHandler?