I've created an overlay viewcontroller (InfoViewController) with UI Controls over EAGLView, so also added to the main window.
I would like to control (hide, show) the overlay view from inside the loop FOR of EAGLView, where the engine detects the markers.
To access the overlay view from EAGLView I use the delegate property of UIApplication:
appDelegate = (ImageTargetsAppDelegate *) [[UIApplication sharedApplication] delegate];
appDelegate.infoViewController.view.hidden = YES;
For some reason, when I try to hidden the overlay view from the FOR EAGLView, it doesn't work, but for example the buttons inside that view gets unresponsive.
Can anyone help me, trying to understand where is the issue?