iOS10系统下调用系统相册、相机功能,遇到闪退的情况,描述如下:
复制代码
1
2
3This 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文件下添加
相机权限
复制代码
1
2
3<key>NSCameraUsageDescription</key> <string>cameraDesciption</string>
相册权限
复制代码
1
2
3<key>NSPhotoLibraryUsageDescription</key> <string>photoLibraryDesciption</string>
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
最后
以上就是霸气丝袜最近收集整理的关于IOS10 相册相机闪退bug解决办法的全部内容,更多相关IOS10内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复