AFNetworking 打印錯誤信息(二進制信息)

AFNetworking 打印錯誤信息(二進制信息)


NSError *underError = error.userInfo[@"NSUnderlyingError"];
NSData *data = underError.userInfo[AFNetworkingOperationFailingURLResponseDataErrorKey];
NSString *errorStr = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
CXLog(@"%@", errorStr);
相關文章
相關標籤/搜索