NSURLSession has NSURLSessionDataTask
and NSURLSessionDownloadTask
and I'm more of a fan of data, as I don't need to retrieve it from the file system.
The NSURLSessionDownloadTaskDelegate has a method for retrieving progress on the download, though it doesn't seem the data counterpart does. If I want download progress, am I required to use NSURLSessionDownloadTask
?
If so, I understand NSURLSessionDownloadTask
stores the file downloaded and then you retrieve it. Does this directory where files are stored need to emptied occasionally, or is it just a temp store that gets removed as soon (or soon after) accessing it?