源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

IOS10 隐私权限设置实例详解

  • 时间:2020-02-17 17:08 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:IOS10 隐私权限设置实例详解
[b]Xcode8,iOS10.0系统中,使用相机功能的时候报错[/b]
This app has crashed because it attempted to access privacy-sensitive data without a usage description. 
The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user 
how the app uses this data.

主要原因是iOS10之后,相册,位置,麦克风等这些需要权限验证的东西,都需要在plist文件里面添加响应的键值对。否则都会报错,使用Privacy开头的都需要添加到plist文件里面。 [img]http://files.jb51.net/file_images/article/201612/2016122310471714.png[/img]   [b]后面的字符串是授权时候回显示的字样 [/b] [img]http://files.jb51.net/file_images/article/201612/2016122310471715.png[/img] 感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部