How to set root view controller
in AppDelegate.m
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds]; UIViewController *viewController = // determine the initial view controller here and instantiate it with [storyboard instantiateViewControllerWithIdentifier:]; self.window.rootViewController = viewController;//making a view to root view [self.window makeKeyAndVisible]; return YES;}