【发布时间】:2011-12-12 03:02:46
【问题描述】:
我看到有一个可以修改的接受的http状态码列表,但我认为如果我能在失败块中获得http状态码会更简洁..
好的,用操作对象找到答案了
failure:^(AFHTTPRequestOperation *operation, NSError *error){
NSLog(@"error code %d",[operation.response statusCode]);
}];
【问题讨论】:
标签: afnetworking