From 354eb7e85ac8db6b7a419bdba939cdc74cc150f7 Mon Sep 17 00:00:00 2001 From: PaoloMessina Date: Fri, 23 Jan 2015 14:32:14 +0100 Subject: [PATCH] iOS default drawSight = true iOS default drawSight = true --- ios/CsZBar.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/CsZBar.m b/ios/CsZBar.m index 6b7dc9f..0f5b81d 100644 --- a/ios/CsZBar.m +++ b/ios/CsZBar.m @@ -64,7 +64,7 @@ //UIView *infoButton = [[[[[self.scanReader.view.subviews objectAtIndex:1] subviews] objectAtIndex:0] subviews] objectAtIndex:3]; //[infoButton setHidden:YES]; - BOOL drawSight = [[params objectForKey:@"drawSight"] boolValue]; + BOOL drawSight = [params objectForKey:@"drawSight"] ? [[params objectForKey:@"drawSight"] boolValue] : true; if(drawSight){ CGRect screenRect = [[UIScreen mainScreen] bounds]; CGFloat screenWidth = screenRect.size.width;