Restore/update the hack for hiding ZBar scanner Info button on iOS
This commit is contained in:
		| @@ -60,9 +60,9 @@ | ||||
|             self.scanReader.cameraFlashMode = UIImagePickerControllerCameraFlashModeOff; | ||||
|         } | ||||
|  | ||||
|         // Hack to hide the bottom bar's Info button... http://stackoverflow.com/a/16353530 | ||||
|         //UIView *infoButton = [[[[[self.scanReader.view.subviews objectAtIndex:1] subviews] objectAtIndex:0] subviews] objectAtIndex:3]; | ||||
|         //[infoButton setHidden:YES]; | ||||
|         // Hack to hide the bottom bar's Info button... originally based on http://stackoverflow.com/a/16353530 | ||||
|         UIView *infoButton = [[[[[self.scanReader.view.subviews objectAtIndex:2] subviews] objectAtIndex:0] subviews] objectAtIndex:3]; | ||||
|         [infoButton setHidden:YES]; | ||||
|  | ||||
|         BOOL drawSight = [params objectForKey:@"drawSight"] ? [[params objectForKey:@"drawSight"] boolValue] : true; | ||||
|         if(drawSight){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user