mirror of
https://github.com/simplezhli/flutter_barcode_reader.git
synced 2024-11-23 03:19:24 +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 {
|
- (void)viewWillDisappear:(BOOL)animated {
|
||||||
|
[self.scanner stopScanning];
|
||||||
[super viewWillDisappear:animated];
|
[super viewWillDisappear:animated];
|
||||||
if ([self isFlashOn]) {
|
if ([self isFlashOn]) {
|
||||||
[self toggleFlash:NO];
|
[self toggleFlash:NO];
|
||||||
|
Loading…
Reference in New Issue
Block a user