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

man2manno

macrumors member
Original poster
Mar 21, 2009
55
0
Hey guys, I know this is kind of a noobie question, but I have a View Controller that loads a nib file, but I want it to also load another one when a button is pressed. I have this:
Code:
[NSBundle loadNibNamed:@"Chart" owner:self];

In the action for my button but I get a warning and when the button is pressed the program crashes. Is that the right line of code?

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