Xcode 7 支持http请求info.plist设置
来源:互联网 发布:linux 硬盘同步 编辑:程序博客网 时间:2024/06/13 18:00
由于iOS9改用更安全的https,为了能够在iOS9中正常使用http发送网络请求,请在"Info.plist"中进行如下配置,否则影响SDK的使用。
1.找到项目中的 Info.plist 文件,右击,选择 open as ------>source code.
2.在打开的文件中光标定位倒数第二行。将下放的内容复制进去。
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
或者:
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
3.command +S 保存。
4.OK。
0 0
- Xcode 7 支持http请求info.plist设置
- Xcode 7 支持http请求info.plist设置
- React-Native 在iOS9之后,网络请求默认为Https请求,如需支持Http,修改info.plist文件添加键值对设置允许http访问。
- xcode info.plist讲解
- xcode info.plist讲解
- xcode info.plist讲解
- xcode info.plist讲解
- info.plist一些设置
- iOS9https设置info.plist
- Info.plist 权限设置
- Xcode 工程info.plist 文件
- iOS:Xcode info.plist说明
- Xcode info.plist各种key
- info.plist文件的设置
- iOS10设置Info.plist属性
- iOS10 Info.plist权限设置
- xcode 中 info.plist 键值对应关系
- Xcode中的Info.plist字段列表详解
- poj 1258 Agri-Net prim算法 最小生成树
- STM32F407的ADC单次转换
- javaEE 中spring bean 重复问题
- Android特效 五种Toast详解
- Android IPC之Messenger
- Xcode 7 支持http请求info.plist设置
- UVA 10129 Play on Words
- KVC-KVO(键盘编码-键值观察)
- WinForm批量删除ListBox中项目
- JSP内置对象
- Why Big Companies use Open Source Solution?
- ViewPager的实现
- Android数据持久化之二:SharedPreferences 存储(上)
- NGINX (轻量级的负载均衡服务器)基本的安装配置