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

Button bar height? #45

Open
ghost opened this issue Feb 2, 2016 · 1 comment
Open

Button bar height? #45

ghost opened this issue Feb 2, 2016 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Feb 2, 2016

The bar where the cancel button is is much higher than the "cancel" button text itself, (like 1.5 times). Why is it so big and can it be reduced in size? It's the little details that matter... ;)

@ghost
Copy link
Author

ghost commented Feb 3, 2016

And centering the cancel button would be nice too (as well as changing it's color). Tried some things but nothing worked..

        [cancelButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [cancelButton setTintColor:[UIColor whiteColor]];

        cancelButton.translatesAutoresizingMaskIntoConstraints = YES;

        cancelButton.center = CGPointMake(infoButton.frame.origin.x, infoButton.frame.origin.y);
        cancelButton.frame = CGRectMake(infoButton.frame.origin.x, infoButton.frame.origin.y, cancelButton.frame.size.width, cancelButton.frame.size.height);
     //   cancelButton.center = [[[[self.scanReader.view.subviews objectAtIndex:2] subviews] objectAtIndex:0] center];

        [[[[self.scanReader.view.subviews objectAtIndex:2] subviews] objectAtIndex:0] setNeedsDisplay];

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

No branches or pull requests

1 participant