When I NSURL session
and NSURLSession.sharedSession ()
, I can show this additional logic 'completionHandler' in the call, this error What could be the reason?
My code:
Share session = NSURL session. Shared session () Let's download: NSURLSessionDownloadTask = sharedSession.downloadTaskWithURL (forecastURL, completionHandler: {(location: NSURL !, feedback: NSRLResponse !, error: NSError!) -> println (answer)} in Zero! DownloadTask Resume ()
No comments:
Post a Comment