Tabs and Loading Views from Xib's

Discussion in 'iOS Programming' started by zeddy, Jul 24, 2008.

  1. macrumors newbie


    Jul 24, 2008
    Hi guys,

    I'm new to Cocoa and Objective C, so go easy on me ;)

    I've been trying to create a tabbed interface by hacking around with the hello world application. So far ive managed to actually create some tabs, and I can make the view of each tab a solid colour.

    However I'm unable to load a view that I've created with the Interface Builder, so that it can be displayed in the view of one of the tabs.

    I thought something along these lines would load the view:
    MyVc *firstController = [[MyVc alloc] initWithNibName:@"HelloWorld" bundle:[NSBundle mainBundle]];
    Assuming that I had all the properties set via the interface builder.

    Where am I going wrong here? I've spent ages hacking around with it and cant seem to come up with any solution after much Googling.

    My messy code can be found here:


Share This Page