When loadNibName used in init, ViewController can't recieve viewDidLoad event
When I put "loadNibNamed" in init, the UIViewController can't recieve
ViewDiDload Event. But I put "loadNibNamed" somewhere else , it works
fine. So, why?
-(id)init { self=[super init];
if(self){
[[NSBundle mainBundle]loadNibNamed:@"MainView" owner:self options:nil];
}
return self;
}
(void)viewDidLoad {
[super viewDidLoad];
}
No comments:
Post a Comment