Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
  2. [button addTarget:self
  3. action:@selector(aMethod:)
  4. forControlEvents:UIControlEventTouchUpInside];
  5. [button setTitle:@"Show View" forState:UIControlStateNormal];
  6. button.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
  7. [view addSubview:button]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement