Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
- [button addTarget:self
- action:@selector(aMethod:)
- forControlEvents:UIControlEventTouchUpInside];
- [button setTitle:@"Show View" forState:UIControlStateNormal];
- button.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
- [view addSubview:button]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement