mirror of
https://github.com/simplezhli/flutter_barcode_reader.git
synced 2024-12-23 07:19:20 +08:00
Stop scanning when pressed the cancel button iOS
This commit is contained in:
parent
dff8905f7c
commit
1581489f9b
@ -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