Previously, I talked about downloading data using NSURLConnection . That method works great, however, in iOS 7 Apple introduced a different way of downloading data, which also allows downloading while you're app is in the background. Just like we did with NSURLConnection, we first need to implement a protocol. This protocol is called: NSURLSessionDownloadDelegate and requires the following 4 selectors: -(void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask...(read more)
↧