iPhone SDK: How to dynamically create view controller with NIB_A?
How can I dynamically creat开发者_如何学运维e a view controller with a NIB file?
Thanks.
Use [[OptionAController alloc] initWithNibName:@"NameOfNIB" bundle:nil]
. You can find this method in Apple's UIViewController documentation.
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];
精彩评论