After reading this article about UIViewController, it clicked.
All I had to do was create a UIViewController in the appFinishedLoading and then I added the opengl view to the viewcontroller. Then made the view of the view controller as a subview of the window.
viewController = [[UIViewController alloc] init];
[viewController.view addSubview:glView];
[window addSubview:viewController.view];

1 comments:
愛情不是慈善事業,不能隨便施捨。.........................
Post a Comment