storyboard用代码跳转

//    UIStoryboard *board = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:nil];
//    
//    // 获取故事板中某个View
//    UIViewController *next = [board instantiateViewControllerWithIdentifier:@"rootVC"];

rootVC是要跳转VC的标示,必须再storyboard文件设置

原文地址:https://www.cnblogs.com/qiqibo/p/2773472.html