Fix scanner never closing

This commit is contained in:
MaicolBen 2016-04-04 15:08:01 -03:00
parent 9769ad9888
commit 1625c4fe02

View File

@ -83,7 +83,7 @@
//[self.scanReader.view addSubview:polygonView];
}
[self.viewController presentModalViewController: self.scanReader animated: YES];
[self.viewController presentViewController:self.scanReader animated:YES completion:nil];
}
}
@ -100,6 +100,7 @@
- (void)imagePickerController:(UIImagePickerController*)picker didFinishPickingMediaWithInfo:(NSDictionary*)info
{
if ([self.scanReader isBeingDismissed]) { return; }
id<NSFastEnumeration> results = [info objectForKey: ZBarReaderControllerResults];
ZBarSymbol *symbol = nil;
for(symbol in results) break; // get the first result