开发者

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜