gpt4 book ai didi

ios - Xcode 摄像头 : Failed to read exposureBiasesByMode dictionary

转载 作者:行者123 更新时间:2023-12-03 09:16:41 25 4
gpt4 key购买 nike

我最近在 Xcode 版本 12.0.1 中的 UIImagePickerController 遇到了这个错误

[Camera] Failed to read exposureBiasesByMode dictionary: Error Domain=NSCocoaErrorDomain Code=4864 "*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL}


有没有其他人看到这个错误?你如何解决它?

最佳答案

如果您将图像选择器自定义为 imagePicker.allowsEditing = true您必须使用以下方法获取图像:

if let pickedImage = info[UIImagePickerController.InfoKey.editedImage] as? UIImage {
capturedImage = pickedImage
}
如果您改为使用 imagePicker.allowsEditing = false ,使用它来选择图像:
if let pickedImage = info[UIImagePickerController.InfoKey.originalImage] as? UIImage {
capturedImage = pickedImage
}
如果您不遵循此组合,则可能会收到此错误。

关于ios - Xcode 摄像头 : Failed to read exposureBiasesByMode dictionary,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64061582/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com