- (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)bundle
{
self = [super initWithNibName:nil
bundle:nil];
// Get a pointer to the application bundle object
NSBundle *appBundle = [NSBundle mainBundle];
self = [super initWithNibName:@"xxx"
bundle:appBundle];
if (self) {
...
}
return self;
}
本文介绍了一个Objective-C中UIViewController子类的初始化方法实现细节,包括如何使用NSBundle加载特定的 nib 文件。
2896

被折叠的 条评论
为什么被折叠?



