Merge pull request #55 from tgezginis/master

Stop scanning when pressed the cancel button on iOS
This commit is contained in:
Matthew Smith 2018-11-19 09:47:55 -08:00 committed by GitHub
commit 5e360fc9da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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