问题 :code = -1016
解决方法:配置对应的content-Type类型 ;
问题 :Error Domain=NSCocoaErrorDomain Code=3840 "JSON
text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow
fragments not set.}
解决方法:配置manger.responseSerializer = [AFHTTPResponseSerializer serializer] ;
本文介绍了如何解决code=-1016及JSON文本未以数组或对象开始的问题。对于code=-1016,需正确配置content-Type类型;而JSON解析问题则需通过设置manger.responseSerializer为AFHTTPResponseSerializer来解决。
805

被折叠的 条评论
为什么被折叠?



