Guest User

Untitled

a guest
May 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. UIView *myView = [[Director sharedDirector] openGLView];
  2.  
  3. UIButton *menuButton = [UIButton buttonWithType: UIButtonTypeRoundedRect];
  4. [menuButton setTitle: @"Menu" forState: UIControlStateNormal];
  5. menuButton.frame = CGRectMake(BUTTON_X(0), BOTTOM_BUTTON_ROW_Y, BUTTON_WIDTH, BUTTON_HEIGHT);
  6. [menuButton addTarget: self action: @selector(menuButtonClicked:) forControlEvents: UIControlEventTouchUpInside];
  7. [myView addSubview: menuButton];
  8. [myView bringSubviewToFront: menuButton];
Add Comment
Please, Sign In to add comment