AFNetWorking请求@"text/plain"类型的时候崩溃
2016-01-21 13:18
441 查看
一、AFNetWorking请求@"text/plain"类型的时候崩溃:
此时需要修改AFNetworking可接收的Content-Type,前往AFNetworking源代码目录找到AFURLResponseSerialization.m文件将里面的代码:
修改为:
二、如何打开.db文件
下载火狐浏览器并且下载插件 SqliteManager
此时需要修改AFNetworking可接收的Content-Type,前往AFNetworking源代码目录找到AFURLResponseSerialization.m文件将里面的代码:
self.acceptableContentTypes =[NSSetsetWithObjects:@"application/json",@"text/json",@"text/javascript",nil];
修改为:
self.acceptableContentTypes =[NSSetsetWithObjects:@"application/json",@"text/json", @"text/javascript" ,@"text/plain" , nil];
二、如何打开.db文件
下载火狐浏览器并且下载插件 SqliteManager
相关文章推荐
- 查看事务锁:innodb_trx+innodb_locks+innodb_lock_waits
- fail2ban 保护
- HDU 2476 String painter 区间dp
- Work Daily Report Week 03 Thur
- Codeforces 616E - Sum of Remainders
- $ ping www.baidu.com connect: Network is unreachable
- 11. Container With Most Water
- Work Daily Report Week 03 Wed
- brew install/update过程中download failed的问题及解决方法
- WAI-ARIA无障碍网页应用属性完全展示
- AirPrint:无交互的后台打印实现
- QWidget、QMainWindow、QDialog和QFrame的区别
- main之前
- 从开机加电到执行main函数之前的过程(二)
- ai论文调研——PAMI Popular Articles (December 2015)
- does not contain bitcode.
- Flume之Failover和Load balancing原理
- ai论文调研-ai领域期刊&会议
- Main Note - Oracle GoldenGate - Supplemental Logging
- 装ghost遇到的问题之一“Windows failed to start. A Recent hardware or software change might be the cause.”