Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIView *myView = [[Director sharedDirector] openGLView];
- UIButton *menuButton = [UIButton buttonWithType: UIButtonTypeRoundedRect];
- [menuButton setTitle: @"Menu" forState: UIControlStateNormal];
- menuButton.frame = CGRectMake(BUTTON_X(0), BOTTOM_BUTTON_ROW_Y, BUTTON_WIDTH, BUTTON_HEIGHT);
- [menuButton addTarget: self action: @selector(menuButtonClicked:) forControlEvents: UIControlEventTouchUpInside];
- [myView addSubview: menuButton];
- [myView bringSubviewToFront: menuButton];
Add Comment
Please, Sign In to add comment