zoukankan      html  css  js  c++  java
  • Xcode8 iOS10 中权限适配

    Xcode8 iOS10 中权限适配 ,如果不在plist文件中添加权限程序会闪退
    
    <!-- 相册 -->   
    <key>NSPhotoLibraryUsageDescription</key>   
    <string>App需要您的同意,才能访问相册</string>   
    <!-- 相机 -->   
    <key>NSCameraUsageDescription</key>   
    <string>App需要您的同意,才能访问相机</string>   
    <!-- 麦克风 -->   
    <key>NSMicrophoneUsageDescription</key>   
    <string>App需要您的同意,才能访问麦克风</string>   
    <!-- 位置 -->   
    <key>NSLocationUsageDescription</key>   
    <string>App需要您的同意,才能访问位置</string>   
    <!-- 在使用期间访问位置 -->   
    <key>NSLocationWhenInUseUsageDescription</key>   
    <string>App需要您的同意,才能在使用期间访问位置</string>   
    <!-- 始终访问位置 -->   
    <key>NSLocationAlwaysUsageDescription</key>   
    <string>App需要您的同意,才能始终访问位置</string>   
    <!-- 日历 -->   
    <key>NSCalendarsUsageDescription</key>   
    <string>App需要您的同意,才能访问日历</string>   
    <!-- 提醒事项 -->   
    <key>NSRemindersUsageDescription</key>   
    <string>App需要您的同意,才能访问提醒事项</string>   
    <!-- 运动与健身 -->   
    <key>NSMotionUsageDescription</key> <string>App需要您的同意,才能访问运动与健身</string>   
    <!-- 健康更新 -->   
    <key>NSHealthUpdateUsageDescription</key>   
    <string>App需要您的同意,才能访问健康更新 </string>   
    <!-- 健康分享 -->   
    <key>NSHealthShareUsageDescription</key>   
    <string>App需要您的同意,才能访问健康分享</string>   
    <!-- 蓝牙 -->   
    <key>NSBluetoothPeripheralUsageDescription</key>   
    <string>App需要您的同意,才能访问蓝牙</string>   
    <!-- 媒体资料库 -->   
    <key>NSAppleMusicUsageDescription</key> 
     <string>App需要您的同意,才能访问媒体资料库</string>
  • 相关阅读:
    单点登录场景中的CAS协议和OAuth2.0协议对比
    https的URL参数传递中文乱码问题
    Goby
    Burp_suite安装及使用教程(专业版)
    IIS下配置php运行环境。
    iis强制使用https
    IIS-详解IIS中URL重写工具的规则条件(Rule conditions)
    树莓派鼓捣记
    树莓派鼓捣记
    WSL1 升级为 WSL2
  • 原文地址:https://www.cnblogs.com/chendiangoal/p/6346583.html
Copyright © 2011-2022 走看看