[iOS开发]日常需求一:Xcode7、iOS9设置Http网络请求(不能使用Http的解决办法)
来源:互联网 发布:html源码模板 编辑:程序博客网 时间:2024/04/28 10:20
在iOS9、Xcode7及其以上版本网络访问时,默认会使用iOS9的新特性,使得所有的http连接被禁用。不过https的证书一般是要收费的,虽然也有免费的但是也有各种各样的限制。所以大多数公司还是采用的http协议,那么问题来了怎么在iOS9、Xcode7中开启http访问呢?
实现步骤一:在项目中搜索info.plist,打开plist文件
实现步骤二:在info.plist中右键点击Add Row添加NSAppTransportSecurity,类型为Dictionary,然后再添加子项目NSAllowsArbitraryLoads类行为Boolean值为YES
ok来试验一下访问一个http连接尝试一下,可以了。
0 0
- [iOS开发]日常需求一:Xcode7、iOS9设置Http网络请求(不能使用Http的解决办法)
- iOS9与XCode7中不能使用http连接的解决办法
- Xcode7 不能使用http网络请求
- iOS9 HTTP 不能正常使用的解决办法(详细plist设置)
- iOS 9 iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- iOS9 HTTP 不能正常使用的解决办法
- 查看linux版本
- 判断屏幕是否旋转
- VS2013常用快捷键
- JavaScript中处理全局变量
- mybatis generator StringIndexOutOfBoundsException异常
- [iOS开发]日常需求一:Xcode7、iOS9设置Http网络请求(不能使用Http的解决办法)
- win7 64位安装mongdb2.6.12 多图详细
- I Hate It
- storm使用redis池与长链接的区别
- ActionBar的使用,设置和自定义
- 怎么判断大小端呢?
- cookie的secure
- 一个网址 很不错的
- 二叉树的相关算法