Guest User

Untitled

a guest
Jan 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. - (void)setTitle:(NSString *)title forState:(UIControlState)state
  2.  
  3. - (NSString *)titleForState:(UIControlState)state
  4.  
  5. - (void)setTitle:(NSString *)title forState:(UIControlState)state
  6.  
  7. - (NSAttributedString *)attributedTitleForState:(UIControlState)state
  8.  
  9. - (void)setAttributedTitle:(NSAttributedString *)title forState:(UIControlState)state
  10.  
  11. UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
  12. [button addTarget:self
  13. action:@selector(aMethod:)
  14. forControlEvents:UIControlEventTouchDown];
  15. [button setTitle:@"Title" forState:UIControlStateNormal];
  16. button.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
  17. [view addSubview:button];
Add Comment
Please, Sign In to add comment