I updated Xcode to version 7 and tried reusing my old code:
let downloadTask : NSURLSessionDownloadTask = sharedSession.downloadTaskWithURL(dataURL!, completionHandler: { (location: NSURL?, response: NSURLResponse?, error: NSError?) -> Void in
let dataObject = NSData(contentsOfURL: location!)
let dataDictionary : NSDictionary = NSJSONSerialization.JSONObjectWithData(dataObject!, options: nil, error: nil) as NSDictionary
})
On the last line I'm now getting error: Extra argument 'error' in call
Though in the NSJSONSerialization Class reference the method contains the error argument.
I'm still kinda newbie in this, if someone can please explain me what's going on and how to solve this I will be very grateful.
Thanks in advance.