The general way to do this is:
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"YourSBName" bundle:nil]; UIViewController *vc = [sb instantiateInitialViewController];
Now a few notes about:
appDelegate.window.rootViewController = vc; // PLEASE READ NOTE ABOUT THIS LINE
The new view controller that you create will be presented in the default orientation, that is, in the portrait. Therefore, it is possible that if you do this in the landscape, your new controller will appear as a portrait, and then turn into a landscape. This line fixed this problem for me.
ilnar_al
source share