I am trying to get a split controller's view by calling it in AppDelegate, but it's not showing up. Here is the code written in didfinishlaunchwithoptions
:
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
SplitViewController *splitViewController = [[SplitViewController alloc] initWithNibName:@"SplitViewController" bundle:nil];
self.navigationController = [[UINavigationController alloc] initWithRootViewController:splitViewController];
self.window.rootViewController = self.navigationController;
[self.window makeKeyAndVisible];
return YES;
And i have SplitViewController.xib with view red colored. But iPad simulator turn up with a black screen.
Please see what can be the issue.
Thanks