iOS10相册相机闪退bug

作者: 海文_L | 来源:发表于2016-07-08 15:28 被阅读10490次

    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>

    相关文章

      网友评论

      • 学习学习中:你好,ImagePickerController.cameraViewTransform这个属性是不是不管用了? 该怎么解决调节自定义相机的坐标问题

      本文标题:iOS10相册相机闪退bug

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