xcode7和ios9下UIWebView不能加载网页的解决方法
2015-12-14 15:47
531 查看
错误描述:
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 beta中,苹果将原http协议改成了https协议,使用 TLS1.2 SSL加密请求数据。
解决方法:
在info.plist 加入key
参考资料:
https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13
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 beta中,苹果将原http协议改成了https协议,使用 TLS1.2 SSL加密请求数据。
解决方法:
在info.plist 加入key
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
参考资料:
https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13
相关文章推荐
- Android 状态机
- Android Studio的SVN配置
- poj 1650 Integer Approximation “追赶法”搜索
- Android学习方向
- Android EventBus源码解析 带你深入理解EventBus
- Android 判断项目中是否添加包含某条系统权限
- Android EventBus实战 没听过你就out了
- android 实现文本复制功能
- Android Notification II-其他细节
- iOS学习笔记51-iOS 音乐类App必备功能:后台播放、锁屏封面、远程播放控制
- Android后台服务-service
- android DDMS method profiling 工具使用分析
- IOS 基础框架名称
- Android开发:shape和selector和layer-list的(详细说明)
- iOS开发之Core Data数据存储
- pc端跳 转 移动端
- android 字母索引 listview
- Android编程中context及全局变量实例详解
- Android属性动画的学习_ObjectAnimator
- iOS 硬件授权检测:定位服务、通讯录、日历、提醒事 项、照片、蓝牙共享、麦克风、相机等