I try to load a loginView in my app delegate but it only shows the original white splash which sais something like “Welcome to universal app”.
I am quite puzzled.
I have created a loginView.xib. Files Owner’s class is LoginViewController.h. The view is linked to Files Owner.
I load the view like this in applicationDidFinishLaunchingWithOptions
LoginViewController *loginVw = [[LoginViewController alloc] init];
[self.window addSubview:loginVw.view];
[self.window makeKeyAndVisible];
Any idea what I am missing?
The designated initialiser for a UIViewController backed by a XIB is
- (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)nibBundle.Your code should look more like
Documentation and sample code is your friend in this case.