var data: NSDictionary =
NSJSONSerialization.JSONObjectWithData(responseData, options:NSJSONReadingOptions.AllowFragments, error: error) as NSDictionary;
这行代码给我报错了
NSError is not convertable to NSErrorPointer.
所以我认为需要将代码更改为:
var data: NSDictionary =
NSJSONSerialization.JSONObjectWithData(responseData, options:NSJSONReadingOptions.AllowFragments, error: &error) as NSDictionary;
我想把NSError error转换成NSErrorPointer,但是我得到了一个新的错误,而且无法理解它:
NSError! is not a subtype of '@|value ST4'