Add this code to your AppDelegate.min function didFinishLaunchingWithOptions:
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"YOUR_STORYBOARD_NAME" bundle:nil];
yourViewControllerClassName *vc = [sb instantiateViewControllerWithIdentifier:@"YOUR_VIEWCONTROLLER_ID"];
self.navigationController = [[UINavigationController alloc] initWithRootViewController:vc];
self.window.rootViewController = self.navigationController;
[self.window makeKeyAndVisible];
yourViewControllerClassName is the name of the .h and .m file associated with your view controller.
YOUR_STORYBOARD_NAMEis the name of your .storyboard file. For example, fill Mainin if your .storyboard file is called Main.storyboard.
YOUR_VIEWCONTROLLER_IDis the identifier of your veiwController. You can edit it in Identity inspector. (See photo)

Hope this helps :)
source
share