AFNetworking 打印错误信息(二进制信息)

AFNetworking 打印错误信息(二进制信息)


NSError *underError = error.userInfo[@"NSUnderlyingError"];
NSData *data = underError.userInfo[AFNetworkingOperationFailingURLResponseDataErrorKey];
NSString *errorStr = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
CXLog(@"%@", errorStr);
posted @ 2017-03-16 11:38  旭宝爱吃鱼  阅读(758)  评论(0编辑  收藏  举报