ios9 http请求不能使用
2024-09-12 21:01:50
为了跟新新版本的ios9版本,使用http请求时会碰到无法加载数据的情况
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
ios9默认是https请求,这时就需要更改系统的InfoPlist文件,修改为http请求
这里先写出来,省的以后用的时候还一次一次敲代码
NSAppTransportSecurity
NSAllowsArbitraryLoads Boolean 类型改为YES
最新文章
- 浅谈Angular的 $q, defer, promise
- iOS导航控制器常用函数与navigationBar常用属性
- CodeBlocks配置文件位置
- SPL--spl_autoload_register
- 对typesafe enum模式的改进
- 问题-安装XP时,提示不识别SATA硬盘
- Nginx 之三:nginx服务器模块、web请求处理机制及事件驱动模型、进程功能和进程间通信
- Directx11学习笔记【十】 画一个简单的三角形
- Net 项目构建基于Jenkins + Github + Mono 的持续集成环境
- ContentResolver + SqliteOpenHelper + ContentProvider 理解
- Github朝花夕拾
- 阿里云oss缩略图如何产生读取 超简单 不看后悔(转)
- unity中获取七天的日期
- salesforce lightning零基础学习(十) Aura Js 浅谈三: $A、Action、Util篇
- the security of smart contract- 2
- opencv学习笔记(三)
- Oracle系统表外键的更名
- C++11 中值得关注的几大变化(详解)
- iOS应用内支付(IAP)的那些坑
- Maven实战(十)利用 Nexus 来构建企业级 Maven 仓库