swift programming NSErrorPointer error etc
问题 var data: NSDictionary = NSJSONSerialization.JSONObjectWithData(responseData, options:NSJSONReadingOptions.AllowFragments, error: error) as NSDictionary; This line of code gives me error NSError is not convertable to NSErrorPointer. So I then thought to change the code to: var data: NSDictionary = NSJSONSerialization.JSONObjectWithData(responseData, options:NSJSONReadingOptions.AllowFragments, error: &error) as NSDictionary; which would turn the NSError error into a NSErrorPointer. But then I