var data: NSDictionary = NSJSONSerialization.JSONObjectWithData(responseData, options:NSJSONReadingOptions.AllowFragments, error: error) as NSDictionary;
This line of code gives me an error
NSError is not convertable to NSErrorPointer.
So, I thought to change the code to:
var data: NSDictionary = NSJSONSerialization.JSONObjectWithData(responseData, options:NSJSONReadingOptions.AllowFragments, error: &error) as NSDictionary;
which turned the NSError error into NSErrorPointer. But then I get a new error and cannot understand it:
NSError! is not a subtype of '@|value ST4'
swift xcode6 nserror
user3732493 Jun 12 '14 at 4:21 2014-06-12 04:21
source share