code_junkie

Developing a NavigationBar Based application including one Open GL View : How?

Nov 13th, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. OpenGlViewController *glvController;
  2.  
  3. if (glvController == nil)
  4. {
  5. glvController = [[OpenGlViewController alloc] initWithNibName:@"Gl View" bundle:nil];
  6. glvController.title = @"GL View";
  7. }
  8. [self.navigationController pushViewController:glvController animated:YES];
  9.  
  10. - (void)loadView {
  11. OpenGlView * view;
  12. view = [[OpenGlView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
  13. self.view = view;
  14. [view release];
Add Comment
Please, Sign In to add comment