自从我添加了这个异步请求后,我得到了一个xcode错误Sending 'NSError *const __strong *' to parameter of type 'NSError *__autoreleasing *' changes retain/release properties of pointer
...
[NSURLConnection sendAsynchronousRequest:req queue:[[NSOperationQueue alloc] init] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error){
dispatch_async(dispatch_get_main_queue(), ^{
NSDictionary *xmlDictionary = [XMLReader dictionaryForXMLData:data error:&error];
...
});
}];
...
Run Code Online (Sandbox Code Playgroud)
如果我使用error:nil那么我的代码运行正常,但我对不使用错误感到不安.我该怎么办?
ios ×1