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.
需要在Plist文件中设置权限:
相机权限
<key>NSCameraUsageDescription</key>
<string>cameraDesciption</string>
相册权限
<key>NSPhotoLibraryUsageDescription</key>
<string>photoLibraryDesciption</string>
配置权限完成之后就可以调起相机和相册了