tags:

views:

192

answers:

2

How can I dynamically create a view controller with a NIB file?

Thanks.

A: 

Still need help. I wanted to post what I was working on. I don't know the syntax for specifying what NIB one would like loaded.

Thanks.

OptionAController *otherVC = [[OptionAController alloc] init ????];     
[self presentModalViewController otherVC animated:YES]; 
[otherVC release];
jp chance
Um... ianh just gave you the exact answer you are looking for.
Marc W
Sorry for the delay. Worked like a champ. Thank you very much.
jp chance
+1  A: 

Use [[OptionAController alloc] initWithNibName:@"NameOfNIB" bundle:nil]. You can find this method in Apple's UIViewController documentation.

ianh