storyboard的代码跳转

取得storyboard文件里的viewController再用常规方法跳转,先设置storyboard里viewController的标志Storyboard ID,如下:

ParkDetailViewController *parkDetailVC = [self.storyboard instantiateViewControllerWithIdentifier:@"ParkDetailViewController"];

[self.navigationController pushViewController:parkDetailVC animated:YES];

你可能感兴趣的:(storyboard的代码跳转)