当前位置:首页 > 通信资讯 > 正文

ios相册闪退怎么办(iOS相机闪退)

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>

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

原文链接:http://blog.csdn.net/zh952016281/article/details/52537092

如果您对该产品感兴趣,请填写办理(客服微信:xiaoxiongyidong)

为您推荐:

发表评论

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。