使用segue进行推
1. 按照惯例进行页面的添加跳转
2. 设置segue
3. 使用代码直接进行跳转
[self performSegueWithIdentifier:@"vcToMessageVC" sender:self];
使用storyboard id 进行跳转
UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
UIViewController *viewController = [storyBoard instantiateViewControllerWithIdentifier:@"test2"]; //test2为viewcontroller2的StoryboardId
[self.navigationController pushViewController:viewController animated:YES];