Multiple views at once in the MainWindow or a ViewController
Hi,
What I want to do is this...
I have an app that is going to be divided into 2 parts. The top half of the screen ("game view")will be for displaying the app / game and the bottom half of the screen will be used for controls. Due to the nature of this app, the controls will be changing quite frequently and the "game view" won't.
To reduce some of the complexity, I've separated the controls and the "game view" into separate classes with separate .xib files.
So far what I've done is put 2 UIViews in the MainWindow.xib and filled each one with it's appropriate nib (i.e. the "game view" gets gameView.xib and the controls get controls.xib).
MainWindow.xib
=====================
UIView 1 loading nib 1 using Class 1
---- (middle of iPhone screen) ------
UIView 2 loading nib 2 using Class 2
==================
That works but I can't interact with the imported views at all. If I put a button on the controls view, it doesn't press, etc...
I've also tried loading MainWindow.xib with a view controller and then putting then importing the nibs into UIViews and that doesn't work.
Is there any way to do what I'm attempting to do? I know that I can display 2 views at once if I use the same class / xib but I'd like to keep them separate.
Have one main controller load into main window. Have the the main controller alloc both controllers and add their views as subviews. Have the main controller keep the 2 controllers around until it itself gets deallocated.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.