【发布时间】:2017-05-14 11:25:39
【问题描述】:
我在第一个视图控制器中有 2 个故事板当前控制器范围。我想通过一个类移动到第二个故事板
UIStoryboard * storyboard=[UIStoryboard storyboardWithName:@"CMS_OrganisationManagement" bundle:nil];
UIViewController *viewcontroller=[storyboard instantiateViewControllerWithIdentifier:@"WS_OrganisationSelectViewController"];
UIWindow *window;
window.rootViewController = viewcontroller;
它不起作用 我也尝试了这种方法。它也不起作用
UIStoryboard * storyboard=[UIStoryboard storyboardWithName:@"CMS_OrganisationManagement" bundle:nil];
UIViewController *viewcontroller=[storyboard instantiateViewControllerWithIdentifier:@"WS_OrganisationSelectViewController"];
UINavigationController * navigationController=[[UINavigationController alloc]init];
[navigationController pushViewController:viewcontroller animated:YES];
【问题讨论】:
标签: ios uiviewcontroller storyboard