gpt4 book ai didi

ios - Creating an image format with an unknown type 是错误的 Objective-C Xcode 8

转载 作者:IT王子 更新时间:2023-10-29 08:10:54 25 4
gpt4 key购买 nike

iOS 10 Objective-CXcode 8 中从图像选择器中选择图像时。我收到一个错误 -

Creating an image format with an unknown type is an error

.

之前的版本没问题。

这是我的代码:

UIImagePickerController* imgPicker=[[UIImagePickerController alloc] init];
imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
imgPicker.delegate = self;
[self presentViewController:imgPicker animated:YES completion:nil];

接收图像的委托(delegate)方法是..

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
[picker dismissViewControllerAnimated:YES completion:NULL];
UIImage *myImage = [info objectForKey:UIImagePickerControllerOriginalImage];
}

我也试过其他委托(delegate)函数..

 -(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *,id> *)info{
}

但错误没有发生。

我不确定这是 Xcode 8 的错误吗?
如果有人遇到并解决了问题,请帮助修复它。

最佳答案

这是一个错误。这只是一个错误的警告。应用程序的运行没有发生任何不良情况,因此请忽略警告。

关于ios - Creating an image format with an unknown type 是错误的 Objective-C Xcode 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40086636/

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