tags:

views:

20

answers:

0

I am having problems doing something simple....

  1. I add a tabviewController to my iphone app and hook it up to Main Window.xib

When I run the app like this I see the tab controller at the bottom and it seems to be fine.

  1. In the xcode menu I click add new file and select UIViewController subclass under the Coca Touch classes. I also tell it I want to include an xib file.

  2. Now I open my newly made xib and add change the background color

  3. Now I select mainWindow.xib and add a new view controller to the attribute inspector.

  4. I click On the new viewController in the document tree in interface builder. I select from the drop down my new class name (which is in the dropdown) I also change the nib name to the file name which as well is in the dropdown.

When I run I see all the tabs including my new one but the views are blank nohing in any of them.

I also found a tabbed view project working on the net. It runs perfect I see all the views in the simulator with the controls on them. But when I add anew view and tab to even this working project all the views go blank and I all see after I am done with this process is the tabbar (with a tab name for my newly created tab). If I delete all the changes I made (deleting the newly created xib,.m,.h) and delete the tab out of the tab view controller it all works fine again.

I must be missing something when adding new tabs and new controllers.

Any ideas. Thanks in advance