I know there are someone have ask this question.But it is a sorry i donot find the answer.
dispatchQueue = dispatch_queue_create(\"myQueue\", NULL);
[capture
It is because of you close the camera authorization. You can open your camera authorization, then open canner to scan QRCode. The blow give typical examples:
AVAuthorizationStatus status = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo];
if(status == AVAuthorizationStatusAuthorized) {
// authorized
[self setupCamera];
} else {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Tips" message:@"Authorization is required to use the camera, please check your permission settings: Settings> Privacy> Camera" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"Ok", nil];
[alert show];
}