1. 从xib的viewcontroll中启动storyboard 或者 从一个storyboard切换到另一个storyboard:
[objc]
– (IBAction)openStoryboard:(id)sender {
UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
LoginTableViewController *vc = [story instantiateViewControllerWithIdentifier:@"LoginTableViewController"];
[self.navigationController pushViewController:vc animated:YES];
}
[/objc]
2. 从storyboard切换到xib:
[objc]
LoginViewController *loginViewController = [[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:nil];
[/objc]
然后用push或者modal方法启用这个controller
3. 从xib或者storyboard中启动里一个storyboard的某一个controller上:
[objc]
[storyboard instantiateViewControllerWithIdentifier"actionList"];
[/objc]
原文地址:http://blog.csdn.net/lrenjun/article/details/10235687