Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)setTitle:(NSString *)title forState:(UIControlState)state
- - (NSString *)titleForState:(UIControlState)state
- - (void)setTitle:(NSString *)title forState:(UIControlState)state
- - (NSAttributedString *)attributedTitleForState:(UIControlState)state
- - (void)setAttributedTitle:(NSAttributedString *)title forState:(UIControlState)state
- UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
- [button addTarget:self
- action:@selector(aMethod:)
- forControlEvents:UIControlEventTouchDown];
- [button setTitle:@"Title" forState:UIControlStateNormal];
- button.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
- [view addSubview:button];
Add Comment
Please, Sign In to add comment