Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPhone X, iOS11.2.6 Crash #134

Open
TomBoy2015 opened this issue Mar 26, 2018 · 3 comments
Open

iPhone X, iOS11.2.6 Crash #134

TomBoy2015 opened this issue Mar 26, 2018 · 3 comments

Comments

@TomBoy2015
Copy link

 // 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];
@cocfident
Copy link

我也遇到了这个问题, 请问你解决了么

@peterlai107
Copy link

我是把上面那幾行給mark掉就可以了~

@prakashbarik90
Copy link

Comment this below code & then run,

UIView *infoButton = [[[[[self.scanReader.view.subviews objectAtIndex:2] subviews] objectAtIndex:0] subviews] objectAtIndex:infoButtonIndex];
    [infoButton setHidden:YES];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants