我是靠谱客的博主 霸气丝袜,这篇文章主要介绍IOS10 相册相机闪退bug解决办法,现在分享给大家,希望可以做个参考。

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

复制代码
1
2
3
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文件下添加

相机权限

复制代码
1
2
3
<key>NSCameraUsageDescription</key> <string>cameraDesciption</string>

相册权限

复制代码
1
2
3
<key>NSPhotoLibraryUsageDescription</key> <string>photoLibraryDesciption</string>

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

最后

以上就是霸气丝袜最近收集整理的关于IOS10 相册相机闪退bug解决办法的全部内容,更多相关IOS10内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(97)

评论列表共有 0 条评论

立即
投稿
返回
顶部