下面的代码显示了上面的错误
captureOutput = [[AVCapturePhotoOutput alloc]init];
AVCapturePhotoSettings* hots = [AVCapturePhotoSettings photoSettingsWithFormat:@{AVVideoCodecKey:AVVideoCodecTypeJPEG}];
[captureOutput setPreparedPhotoSettingsArray:hots completionHandler:nil];我在试着制作条形码扫描仪
发布于 2020-03-12 00:16:31
用这个代替:[captureOutput setPreparedPhotoSettingsArray:@[hots] completionHandler:nil];
https://stackoverflow.com/questions/60645466
复制相似问题