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];
No comments:
Post a Comment