码迷,mamicode.com
首页 > 移动开发 > 详细

iOS10相册相机闪退bug-b

时间:2016-09-15 19:12:23      阅读:340      评论:0      收藏:0      [点我收藏+]

标签:

iOS10系统下调用系统相册、相机功能,遇到闪退的情况,描述如下:

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.

修复方法:

在info.plist文件下添加

相机权限

<key>NSCameraUsageDescription</key>

<string>cameraDesciption</string>

 

相册权限

<key>NSPhotoLibraryUsageDescription</key>

<string>photoLibraryDesciption</string>



文/海文_L(简书作者)
原文链接:http://www.jianshu.com/p/5085430b029f
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。

iOS10相册相机闪退bug-b

标签:

原文地址:http://www.cnblogs.com/isItOk/p/5875203.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!