Skip to content

Instantly share code, notes, and snippets.

@popochess
Created October 12, 2012 17:27
Show Gist options
  • Save popochess/3880376 to your computer and use it in GitHub Desktop.
Save popochess/3880376 to your computer and use it in GitHub Desktop.
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[button addTarget:self action:@selector(goSecondView) forControlEvents:UIControlEventTouchDown];
[button setTitle:@"Second View" forState:UIControlStateNormal];
button.frame = CGRectMake(110, 150, 100.0, 40.0);
[self.view addSubview:button];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment