您的位置:首页 > 其它

关于AFNetworking code-1016

2016-06-07 16:35 225 查看
AFURLResponseSerialization.m  文件里

 AFJSONResponseSerializer  实现方法

 - (instancetype)init  中

self.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", nil];

修改为

self.acceptableContentTypes = [NSSetsetWithObjects:@"application/json",@"text/json",@"text/javascript",@"text/html",nil];

如果有中文修改为

self.acceptableContentTypes = [NSSet
setWithObjects:@"application/json",
@"text/json", @"text/javascript",@"text/html",
@"text/plain", nil];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: