美文网首页
iOS 10以后访问 系统相册 相机 等系统功能崩溃问题

iOS 10以后访问 系统相册 相机 等系统功能崩溃问题

作者: WS_0909 | 来源:发表于2017-05-09 17:19 被阅读0次

网络

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

在 系统 info。plist 中添加
可以右击info.plist 文件 选择 Open As -> Source Code 然后把下面需要的功能 command+ C command +V 进去

相机拍摄文字本地化 
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>NSPhotoLibraryUsageDescription</key>
<string>App需要您的同意,才能访问相册</string>

<key>NSPhotoLibraryAddUsageDescription</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>

相关文章

网友评论

      本文标题:iOS 10以后访问 系统相册 相机 等系统功能崩溃问题

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