I am dealing with an error of about 45 days. I have already tried dozens of method calls, changing the entire program, but nothing works.
I am using GLES 2 with a UIViewController, which is the rootViewController, which is of type UIView, whose layerclass is CAEAGLLayer.
When I launch the application, the screen turns black, and if I click on the screen, events are not generated.
If I rotate the application, a screen appears and events work. Even worse, if I donโt rotate the application, but set a breakpoint immediately after the current Renderbuffer and clicked the โCapture OpenGL ES Frameโ button inside Xcode, a screen will appear and events will start working !!!
I believe that the view is not actually shown, however I implemented viewWillLayoutSubviews, viewWillAppear, viewDidAppear, loadView (where I start everything), all these methods are called in the following order:
view will appear view view will display layouts view appeared
In addition, the view has a valid frame size.
Any help is greatly appreciated for this desperate user.
guich