xib 跳转到StoryBoard
UIStoryboard *board = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UIViewController *vc = [board instantiateViewControllerWithIdentifier:@"02"];
[self presentViewController:vc animated:nil completion:nil];
StoryBoard跳转到xib
//别问我为什么用present,因为我试过用pop然而跳转不了 希望有大神解答
UIViewController *registerController = [[UIViewController alloc] initWithNibName:@"SzRegisteViewController" bundle:[NSBundle mainBundle]];
[self presentViewController:registerController animated:NO completion:nil];
StoryBoard与StoryBoard
UIViewController *registController = [[self storyboard] instantiateViewControllerWithIdentifier:@"regist"];
[self presentViewController:registController animated:NO completion:nil];