我正在使用 AFNetworking、Overcoat 和 Promisekit。我想查看从服务器返回的 json。
//apiclient.h
@interface STRAPIClient : OVCHTTPSessionManager
//apiclient.m
[self POST:@"contents" parameters:parameters]
.then(^(OVCResponse *response) {
return response.result;
})
.catch(^(NSError * error){
NSLog(error.description);
});;
如何从 NSError 对象中获取响应字符串?