Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zeddy

macrumors newbie
Original poster
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:
Code:
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:
http://zeddy.org/ahh.zip

Thanks,
Martin
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.