NSString *strResourcesBundle = [[NSBundle mainBundle] pathForResource:@"New_Test2Bundle" ofType:@"bundle"]; //bundle路径
NSBundle *bundle1=[NSBundle bundleWithPath:strResourcesBundle];//转成bundle类型
UIStoryboard *storyboard=[UIStoryboard storyboardWithName:@"new_test2" bundle:bundle1];//获取bundle中的storyboard
New_ViewController *view3 = [storyboard instantiateViewControllerWithIdentifier:@"new_test"];
[self.navigationController pushViewController:view3 animated:YES];
同一项目下页面跳转bundle下的storyboard里
最新推荐文章于 2021-08-29 14:04:19 发布