I'm using instantiateViewControllerWithIdentifier
to get a viewController from Storyboard in order to assign it as a root viewController for a navigationController, so i do that:
self.welcomeView=(WelcomeView*)[self.storyboard instantiateViewControllerWithIdentifier:@"WelcomeView"];
and in order to set self.welcomeView
as a root view controller for the navigation controller i do that:
[self.navigationController setViewControllers:@[self.welcomeView] animated:NO];
the problem is that ViewDidLoad
of WelcomeView
didn't called and as a result the rootViewController of the navigation controller appears blank, i don't know why this happens!
Aucun commentaire:
Enregistrer un commentaire