mirror of
https://github.com/simplezhli/flutter_barcode_reader.git
synced 2024-11-22 21:59:23 +08:00
Merge pull request #55 from tgezginis/master
Stop scanning when pressed the cancel button on iOS
This commit is contained in:
commit
5e360fc9da
@ -62,6 +62,7 @@
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated {
|
||||
[self.scanner stopScanning];
|
||||
[super viewWillDisappear:animated];
|
||||
if ([self isFlashOn]) {
|
||||
[self toggleFlash:NO];
|
||||
|
Loading…
Reference in New Issue
Block a user