swift programming NSErrorPointer error etc

后端 未结 4 2073
我在风中等你
我在风中等你 2021-01-01 08:23
var data: NSDictionary = 
    NSJSONSerialization.JSONObjectWithData(responseData, options:NSJSONReadingOptions.AllowFragments, error: error) as NSDictionary;
         


        
4条回答
  •  误落风尘
    2021-01-01 09:10

    Now in beta-3

    var error: AutoreleasingUnsafePointer = nil
    
    var data: NSDictionary = NSJSONSerialization.JSONObjectWithData( w, options:.AllowFragments, error: error ) as NSDictionary;
    

提交回复
热议问题