zoukankan      html  css  js  c++  java
  • Xcode 7 支持http请求info.plist设置

        由于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。

     

     

     

     

    <key>NSAppTransportSecurity</key>

        <dict>

            <key>NSAllowsArbitraryLoads</key>

            <true/>

        </dict>

  • 相关阅读:
    redis
    linux systemd
    分布式高可用架构演进
    c++ 多线程 信号量简单使用
    JAVA上传文件到FTP上
    JAVA字符串去掉html代码
    jQuery判断复选框是否勾选
    SpringBoot全局异常处理
    SpringBoot统一日志打印
    JAVA加解密之DES
  • 原文地址:https://www.cnblogs.com/wahy/p/4910669.html
Copyright © 2011-2022 走看看