//获取storyboard: 通过bundle根据storyboard的名字来获取我们的storyboard, UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]]; //由storyboard根据myView的storyBoardID来获取我们要切换的视图 UIViewController *myView = [story instantiateViewControllerWithIdentifier:@"myView"]; //由navigationController推向我们要推向的view [self.navigationController pushViewController:myView animated:YES];
iOS 获取storyboard创建的视图控制器
最新推荐文章于 2018-06-01 12:39:02 发布