- (void)viewDidLoad
{
self.capture = nil;
self.capture = [[ZXCapture alloc] init];
self.capture.camera = self.capture.back;
self.capture.focusMode = AVCaptureFocusModeContinuousAutoFocus;
self.capture.rotation = 90.0f;
self.capture.layer.frame = CGRectMake(0, 150, self.view.frame.size.width, self.view.frame.size.height);
self.capture.delegate = self;
[self.view.layer addSublayer:self.capture.layer];
[self.capture start];
}
我停止了相機,我使用下面的方法,它的優良工程我在我的應用程序中使用斑馬線庫
[self.capture stop];
我試圖啓動相機,我使用下面的方法
[self.capture start];
上述方法不能正常工作無法打開攝像頭進行掃描
請幫助 提前致謝。
您是否多次分配 – 2014-10-07 07:27:54