美文网首页
iOS - https设置、定位权限设置

iOS - https设置、定位权限设置

作者: Cdream | 来源:发表于2016-04-29 17:23 被阅读1479次

    定位权限设置

    需要在info.plist中追加 NSLocationWhenInUseUsageDescription 或NSLocationAlwaysUsageDescription 字段,以申请定位权限。

    # https设置
    iOS9为了增强数据访问安全,将所有的http请求都改为了https,为了能够在iOS9中正常使用地图SDK,请在"Info.plist"中进行如下配置,否则影响SDK的使用。

    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>
    

    相关文章

      网友评论

          本文标题:iOS - https设置、定位权限设置

          本文链接:https://www.haomeiwen.com/subject/eufkrttx.html