PDA

View Full Version : loading mutliple nib files




man2manno
Jun 19, 2009, 02:18 AM
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:

[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



PhoneyDeveloper
Jun 19, 2009, 10:09 AM
First, search the forum for loadNibNamed.

Second, Use the code in these threads:

https://devforums.apple.com/message/12064

http://www.iphonedevsdk.com/forum/iphone-sdk-development/12550-how-load-table-view-cell-nib.html