Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. - (void)addHeaderButton {
  2.  
  3. _headerButton = [UIButton buttonWithType:UIButtonTypeCustom];
  4. self.headerButton.frame = self.bounds;
  5. self.headerButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
  6. [self.headerButton setTitleColor:[UIColor colorWithRed:(0.0/255.0) green:(51.0/255.0) blue:(102.0/255.0) alpha:(1.0)] forState:UIControlStateNormal];
  7. self.headerButton.titleLabel.font = [UIFont fontWithName:@"Nunito-Black" size:25];
  8. //[self.headerButton setFont:[UIFont systemFontOfSize:25]];
  9. [self.headerButton addTarget:self action:@selector(headerButtonAction:) forControlEvents:UIControlEventTouchUpInside];
  10.  
  11. [self.contentView addSubview:self.headerButton];
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement