For your rendering you really have to use GLKView inside the GLKViewController. if you are worried that you donβt need to constantly update, use self.paused = YES inside your GLKViewController, this will stop the rendering cycle, and when you need to display again, just do self.paused = NO.
If you have glkview inside another view, you should set it using containment. in your case, you should have a regular UIView with a normal UIViewController, and then add a UISlider and your GLKViewController (with GLKView) to this.
After that, you can do your normal browsing in your parent controller, and your opengl is your glk controller.
A simple example for this is to set the parent that contains the UISlider:
inside custom UIViewController for parent
@interface ParentViewController () { ... UISlider *_slider;
then inside viewDidLoad:
but this is just a simple example that will get you started, you really need to read Apple docs regarding the UIViewController for ios5 and docs for GLKit
source share