I\'ve been having a problem understanding what xcode wants from me when it gives me the \"Extra argument \'error\' in call\" it keeps pointing to
if let fee
The way to do this in Swift 2
is
let feed = try NSJSONSerialization.JSONObjectWithData(data!, options: .MutableContainers)
Here is the new way of error handling in swift 2...
do {
if let feed = try NSJSONSerialization.JSONObjectWithData(data, options: .MutableContainers) as? NSDictionary {
// Success block...
}
} catch {
print(error)
}