zoukankan      html  css  js  c++  java
  • info.plist文件里面添加描述 -> 配置定位,相册等

    <key>NSAppleMusicUsageDescription</key>

    <string>App需要您的同意,才能访问媒体资料库</string>

    <key>NSBluetoothPeripheralUsageDescription</key>

    <string>App需要您的同意,才能访问蓝牙</string>

    <key>NSCalendarsUsageDescription</key>

    <string>App需要您的同意,才能访问日历</string>

    <key>NSCameraUsageDescription</key>

    <string>App需要您的同意,才能访问相机</string>

    <key>NSHealthShareUsageDescription</key>

    <string>App需要您的同意,才能访问健康分享</string>

    <key>NSHealthUpdateUsageDescription</key>

    <string>App需要您的同意,才能访问健康更新 </string>

    <key>NSLocationAlwaysUsageDescription</key>      //后台定位耗电

    <string>App需要您的同意,才能始终访问位置</string>

    <key>NSLocationUsageDescription</key>

    <string>App需要您的同意,才能访问位置</string>

    <key>NSLocationWhenInUseUsageDescription</key>

    <string>App需要您的同意,才能在使用期间访问位置</string>

    <key>NSMicrophoneUsageDescription</key>

    <string>App需要您的同意,才能访问麦克风</string>

    <key>NSMotionUsageDescription</key>

    <string>App需要您的同意,才能访问运动与健身</string>

    <key>NSPhotoLibraryUsageDescription</key>

    <string>App需要您的同意,才能访问相册</string>

    <key>NSRemindersUsageDescription</key>

    <string>App需要您的同意,才能访问提醒事项</string>

    <key>UIBackgroundModes</key>
    ---------------------
    添当前的位置会持续使用GPS定位服务,相比其他操作会消耗更多的电量.GPS在使用期间会影响电池续航时间.   在上线的时候需要特别注明,不然审核通不过。

    打开编辑:项目>TARGETS>Info>Custom iOS Target Properties 添加

  • 相关阅读:
    java中的HMAC-SHA1加密
    java拦截处理System.exit(0)
    使用canal分析binlog(二) canal源码分析
    JS的异步世界
    socket.io的用户认证
    一个补零小函数
    使用gulp在开发过程中合理导出zip文件
    使用r.js进行前端repuirejs的合并压缩
    使用r2d3的注意事项
    三列自适应布局的实现方式(兼容IE6+)
  • 原文地址:https://www.cnblogs.com/zzsdream/p/10051888.html
Copyright © 2011-2022 走看看