适配iOS9https请求
来源:互联网 发布:mac上怎么用office 编辑:程序博客网 时间:2024/05/17 04:24
这里就不说https和http的具体区别了网上一大推
如果不配置的话就有这个错误。网络请求失败。
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.
直入主题:
如上图:
1在主plist文件下的Information Property List下添加
NSAppTransportSecurity类型为Dictionary
在该目录下在加
NSAllowsArbitraryLoads类型为Boolen Value值为YES
接下来在TARGETS里点击Build Setting搜索bitcode
将Enable Bitcode设为No
希望可以帮到你
同时也欢迎访问http://www.jianshu.com/users/be0e45643dcf/latest_articles
https://github.com/tubie
0 0
- 适配iOS9https请求
- iOS9https设置info.plist
- App适配https请求
- 请求
- 请求
- 请求
- 请求
- ios9网络请求https适配
- 适配Http协议网络请求
- iOS 9 适配HTTP请求拒绝问题
- 请求地址 - 多次请求
- GET请求 Post请求
- 网络请求 同步请求
- get请求 post请求
- Get请求 Post请求
- 网络请求 多次请求
- 请求框架&移动请求
- PDP激活请求,创建请求,删除请求
- Windows 设置护眼色的两种方法
- 列出display的值,并说明它们的作用
- 欢迎使用CSDN-markdown编辑器
- hdu 5429 Geometric Progression(高精度)
- 文件I/O实践(1) --基础API
- 适配iOS9https请求
- The Importance of Algorithms
- C++学习笔记17——函数重载
- 第六周-建立链栈算法库
- MyBatis配置一对一
- java.lang.SecurityException: Need BLUETOOTH ADMIN permission: Neither user 10047 nor current process
- HDU4460(最短路)
- ZOJ 3908 Number Game(乱搞)
- Android Canvas的常用方法