Stop scanning when pressed the cancel button iOS

This commit is contained in:
Tolga Gezginiş 2018-11-09 22:07:58 +03:00
parent dff8905f7c
commit 1581489f9b

View File

@ -62,6 +62,7 @@
}
- (void)viewWillDisappear:(BOOL)animated {
[self.scanner stopScanning];
[super viewWillDisappear:animated];
if ([self isFlashOn]) {
[self toggleFlash:NO];