As I explain in this answer , EAGLView is not a Cocoa Touch built-in class. Apple began to use this name for the custom UIView that they used in their original application examples, and so many people copied and pasted this code, which many developers began to think that it was built into the system.
In general, all that these ordinary UIViews had in common was that they redefined the method +layerClassthis way:
+ (Class)layerClass
{
return [CAEAGLLayer class];
}
This means that instead of using the standard CALayer to support this subclass of UIView, this particular UIView will be supported using CAEAGLLayer. CAEAGLLayers is what provides OpenGL ES content rendering, so you will need something similar for your OpenGL ES application.
source
share