最佳答案
我有个简单的要求:
[NSURLConnection sendAsynchronousRequest:myRequest queue:queue completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
// do stuff with response if status is 200
}];
如何获取状态代码以确保请求正常?