iOS10新特性-访问相册相机

    1. 访问相册有闪退了,苹果真是越来越注重用户体验了

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里面配置 NSPhotoLibraryUsageDescription,废话不多说直接上图


iOS10新特性-访问相册相机_第1张图片
不需要我多说了哦
  • 2.相机描述
    2016-06-19 10:00:08.121342 swiftScan[930:193993] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

直接在infoplist里面配置NSCameraUsageDescription这个key就OK了,以后如果出现这种问题,直接在info.plist配置,其他问题军哥不在重复,因为都是一样的

你可能感兴趣的:(iOS10新特性-访问相册相机)