我想讀QR碼與斑馬線之間startRunning:AVCaptureSession不能調用beginConfiguration/commitConfiguration
self.capture = [[ZXCapture alloc] init];
self.capture.rotation = 90.0f;
// Use the back camera
self.capture.delegate = self;
self.capture.camera = self.capture.back;
self.capture.layer.frame = self.view.bounds;
[self.view.layer addSublayer:self.capture.layer];
我得到這個錯誤:
*終止應用程序由於未捕獲的異常'NSGenericException',原因:'* AVCaptureSession無法啓動在調用beginConfiguration/commitConfiguration之間運行'