diff --git a/THPinViewController/THPinView.m b/THPinViewController/THPinView.m index a29c69e..cd813a7 100644 --- a/THPinViewController/THPinView.m +++ b/THPinViewController/THPinView.m @@ -63,7 +63,7 @@ - (instancetype)initWithDelegate:(id)delegate toItem:self attribute:NSLayoutAttributeCenterX multiplier:1.0f constant:0.0f]]; - _bottomButton = [UIButton buttonWithType:UIButtonTypeSystem]; + _bottomButton = [UIButton buttonWithType:UIButtonTypeCustom]; _bottomButton.translatesAutoresizingMaskIntoConstraints = NO; _bottomButton.titleLabel.font = [UIFont systemFontOfSize:16.0f]; _bottomButton.titleLabel.lineBreakMode = NSLineBreakByTruncatingTail; diff --git a/THPinViewControllerExample/THViewController.m b/THPinViewControllerExample/THViewController.m index adfbddb..91c1bf6 100644 --- a/THPinViewControllerExample/THViewController.m +++ b/THPinViewControllerExample/THViewController.m @@ -36,7 +36,7 @@ - (void)viewDidLoad self.secretContentView.contentMode = UIViewContentModeScaleAspectFit; [self.view addSubview:self.secretContentView]; - self.loginLogoutButton = [UIButton buttonWithType:UIButtonTypeSystem]; + self.loginLogoutButton = [UIButton buttonWithType:UIButtonTypeCustom]; self.loginLogoutButton.translatesAutoresizingMaskIntoConstraints = NO; [self.loginLogoutButton setTitle:@"Enter PIN" forState:UIControlStateNormal]; self.loginLogoutButton.tintColor = [UIColor whiteColor];