Added support for a custom UIViewController used by OpenGL games.