美文网首页
iOS10获得系统权限

iOS10获得系统权限

作者: Code丶Ling | 来源:发表于2016-09-26 14:05 被阅读17次

iOS 10 对系统隐私权限的管理更加严格,如果你不设置就会直接崩溃,一般解决办法都是在info.plist文件添加对应的Key-Value就可以了。

NSPhotoLibraryUsageDescription

App需要您的同意,才能访问相册

NSCameraUsageDescription

App需要您的同意,才能访问相机

NSMicrophoneUsageDescription

App需要您的同意,才能访问麦克风

NSLocationUsageDescription

App需要您的同意,才能访问位置

NSLocationWhenInUseUsageDescription

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

NSLocationAlwaysUsageDescription

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

NSCalendarsUsageDescription

App需要您的同意,才能访问日历

NSRemindersUsageDescription

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

NSMotionUsageDescription App需要您的同意,才能访问运动与健身

NSHealthUpdateUsageDescription

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

NSHealthShareUsageDescription

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

NSBluetoothPeripheralUsageDescription

App需要您的同意,才能访问蓝牙

NSAppleMusicUsageDescription

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

相关文章

网友评论

      本文标题:iOS10获得系统权限

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