Hi All,
I am developing an iphone app and I have two UIViews, one for "standby screen" consist of UIImageView, UIButton, UILabels, and another one for "game screen", which is a OPENGL view.
I use a custom view controller. In loadView(), I create a UIView,load these 2 views and add these 2 views in UIView. Then I want to provide two functions to control which view to display:
-(void) switchToStandbyView; -(void) switchToGameView;
I would like to ask what should be a good design to implement these 2 function-- to set one view as hidden, or to remove one view from UIView? Or I should not use one UIViewController to control 2 UIViews? And what should be done to inform the rendering system to update the view change? Thanks!