the operation can be executed • Make sure we can access the internet • Make sure we can access the user's location • Make sure we can load the user's camera roll Oscar Swanros, 2015
response, error in self.datarequestFinishedWithUrl(url, response: response, serror: error) } let networkTaskOperation = RBURLSessionTaskOperation(task: task) // Now our download task is an Operation Oscar Swanros, 2015
NSURL) { self.cacheFile = c } override public func execute() { do { let json = try NSJSONSerialization.JSONObjectWithData(data) if let json = json { parse(json) } else { finish() } } catch let error as NSError { finishWithError(error) } } } Oscar Swanros, 2015