From 4e61b5746b012214ddf8395874de415a2b13881a Mon Sep 17 00:00:00 2001 From: Daniel Albertini Date: Mon, 20 Mar 2017 15:00:55 +0100 Subject: [PATCH] fix for barcode scanner not stopping --- ios/AnylineBarcodeScanViewController.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ios/AnylineBarcodeScanViewController.m b/ios/AnylineBarcodeScanViewController.m index ccaa1b25..5af51fb9 100644 --- a/ios/AnylineBarcodeScanViewController.m +++ b/ios/AnylineBarcodeScanViewController.m @@ -28,6 +28,12 @@ - (void)viewDidLoad { [self.view sendSubviewToBack:self.moduleView]; }); } + +- (void)viewDidAppear:(BOOL)animated { + [super viewDidAppear:animated]; + + self.moduleView.videoView.barcodeDelegate = nil; +} #pragma mark - AnylineBarcodeModuleDelegate method