找到AFJSONResponseSerializer类进入
self.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", nil];
//, @"text/html" 增加这一项便可~
找到AFJSONResponseSerializer类进入
self.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", nil];
//, @"text/html" 增加这一项便可~
本文标题:AFNetworking 支持 text/html 格式接口
本文链接:https://www.haomeiwen.com/subject/zvjdettx.html
网友评论