AFNetworking配置网络请求

来源:互联网 发布:我的mac是什么意思啊 编辑:程序博客网 时间:2024/05/17 02:14

问题 :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 = [AFHTTPResponseSerializerserializer] ;

0 0
原创粉丝点击