我知道有人问过这个问题.但遗憾的是我没有找到答案.
dispatchQueue = dispatch_queue_create("myQueue",NULL); [captureMetadaOutput setMetadataObjectsDelegate:self queue:dispatchQueue]; // [captureMetadaOutput setMetadataObjectTypes:[NSArray arrayWithObject:AVMetadataObjectTypeQRCode]]; // 设置条码类型 captureMetadaOutput.MetadataObjectTypes = @[AVMetadataObjectTypeQRCode];
我收到Crashlytics的崩溃信息:
[AVCaptureMetadataOutput setMetadataObjectTypes:] – unsupported type
found. Use -availableMetadataObjectTypes.