0
我有2个故事板当前控制器到达第一个视图控制器。我想通过一个类移动到第二个故事板通过一个类移动到另一个故事板到另一个故事板
UIStoryboard * storyboard=[UIStoryboard storyboardWithName:@"CMS_OrganisationManagement" bundle:nil];
UIViewController *viewcontroller=[storyboard instantiateViewControllerWithIdentifier:@"WS_OrganisationSelectViewController"];
UIWindow *window;
window.rootViewController = viewcontroller;
它不工作 和我试试这个方法also.it也不起作用
UIStoryboard * storyboard=[UIStoryboard storyboardWithName:@"CMS_OrganisationManagement" bundle:nil];
UIViewController *viewcontroller=[storyboard instantiateViewControllerWithIdentifier:@"WS_OrganisationSelectViewController"];
UINavigationController * navigationController=[[UINavigationController alloc]init];
[navigationController pushViewController:viewcontroller animated:YES];
类具有与viewcontroller.so没有关系,没有导航控制器 – athira