diff --git a/ios/CsZBar.m b/ios/CsZBar.m index 45a15ab..8eb86c3 100644 --- a/ios/CsZBar.m +++ b/ios/CsZBar.m @@ -72,14 +72,14 @@ - (void)scan: (CDVInvokedUrlCommand*)command; } // Hack to hide the bottom bar's Info button... originally based on http://stackoverflow.com/a/16353530 - NSInteger infoButtonIndex; - if ([[[UIDevice currentDevice] systemVersion] compare:@"10.0" options:NSNumericSearch] != NSOrderedAscending) { - infoButtonIndex = 1; - } else { - infoButtonIndex = 3; - } - UIView *infoButton = [[[[[self.scanReader.view.subviews objectAtIndex:2] subviews] objectAtIndex:0] subviews] objectAtIndex:infoButtonIndex]; - [infoButton setHidden:YES]; + // NSInteger infoButtonIndex; + // if ([[[UIDevice currentDevice] systemVersion] compare:@"10.0" options:NSNumericSearch] != NSOrderedAscending) { + // infoButtonIndex = 1; + // } else { + // infoButtonIndex = 3; + // } + // UIView *infoButton = [[[[[self.scanReader.view.subviews objectAtIndex:2] subviews] objectAtIndex:0] subviews] objectAtIndex:infoButtonIndex]; + // [infoButton setHidden:YES]; //UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem]; [button setTitle:@"Press Me" forState:UIControlStateNormal]; [button sizeToFit]; [self.view addSubview:button]; CGRect screenRect = [[UIScreen mainScreen] bounds]; diff --git a/plugin.xml b/plugin.xml index dd43518..957fc0d 100644 --- a/plugin.xml +++ b/plugin.xml @@ -76,6 +76,9 @@ For Barcode Scanning + + Select Barcode For Scanning +