My iPhone app has two main "views": a UIViewController with some buttons, text etc and a window where all the OpenGL ES stuff happens. When I transition from the UIViewController to the window (when the user clicks "play" for example) I just do:
[window ExchangeSubviewAtIndex:0 withSubviewAtIndex:1];
Perhaps this is not the ideal way to do this? I don't want to deallocate the resources used by the UIViewController... I just want the window to be in front. How can I animate the transition from the UIViewController to the window?
I'm really looking for a very simple fade-to-black animation.