title: How to custom init an EAGLView?
body: <p>In my iOS project, <code>glView</code> ends up with height=0 and width=0 even though <code>CGRect frame</code> correctly gets the screen's dimensions in the previous line.</p>
  
  <pre><code> - (void) applicationDidFinishLaunching:(UIApplication*)application {
          CGRect frame = [[UIScreen mainScreen] bounds];
  
          EAGLView *glView = [EAGLView viewWithFrame:frame
                                   pixelFormat:kEAGLColorFormatRGB565
                                   depthFormat:0 
                            preserveBackbuffer:NO 
                                    sharegroup:nil 
                                 multiSampling:NO 
                               numberOfSamples:0
                        ];
        }
  </code></pre>
  
  <p>Is there some other way I need to create my <code>EAGLView *glView</code> in order for it to be <code>init</code>'ed properly?</p>