I have a UIViewController with a UIView in interface builder. I can not for the life of me get it instantiated properly.
I am using:
LoginViewController* myViewController = [[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:nil]
self.window.rootViewController = myViewController;
Any help? Thanks in advance.
From the lines you have supplied, it seems that the instantiation is being done correctly. Aren’t you forgetting to add the
myViewControllers view to the window? Like this:[self.window addSubView:myViewController.view]