我无法初始化 CIDetector 以读取 QRCOde ,它始终保持为零。这是我的代码:
let options = [CIDetectorAccuracy: CIDetectorAccuracyHigh]
self.detector = CIDetector(ofType: CIDetectorTypeQRCode, context: nil, options: options)
如果我用它替换CIDetectorTypeQRCode
它CIDetectorTypeRectangle
会被初始化但我需要阅读 QRCode
我从前两天开始尝试,请帮助