Styling issue of Pad number buttons
cincas opened this issue · comments
Hi there,
Awesome VC, super easy to use. many thanks.
the only issue I've got right now is about Pad number buttons.
They look weird here
does anyone have idea about why this may happen?
BSnapPinViewController *pinViewController = [[BSnapPinViewController alloc] initWithDelegate:self];
pinViewController.promptTitle = @"Enter Pin";
pinViewController.promptColor = [UIColor darkGrayColor];
pinViewController.view.tintColor = [UIColor redColor];
[pinViewController.view.layer setBorderColor:[[UIColor blueColor] CGColor]];
[pinViewController.view.layer setBorderWidth:2.f];
pinViewController.hideLetters = NO;
// Solid background color
pinViewController.backgroundColor = [UIColor darkGrayColor];
pinViewController.disableCancel = YES;
// // Transparent background color
UIViewController *rootViewController = self.window.rootViewController;
// rootViewController.view.tag = THPinViewControllerContentViewTag;
// rootViewController.modalPresentationStyle = UIModalPresentationCurrentContext;
// pinViewController.translucentBackground = YES;
[rootViewController presentViewController:pinViewController animated:NO completion:nil];
I was running this in iPhone 4-inch 7.0 simulator.
Cheers.
I'm not able to reproduce the error. Did you make any modifications to the code?
@antiraum
nah, didnt change anything
I tried in another clean project, it worked perfectly.
Couldnt figure out why so I just add constraint as w=h for each number button.
The only difference I can come up with is I pushed pinView into a UINavigationController in this project but used modal in that clean project.