Tabbarcontroller行为 - iOS设备
问题描述:
我想在标签栏C对IBAction为从一个按钮newViewController到达。但是当我到达标签栏控制器显示A的视图,而不是C的视图。如果使用Tabbarcontroller行为 - iOS设备
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"MyInitialViewController"];
[vc presentModalViewController:navController animated:NO];
我最终没有选择的TabBar和导航栏创建视图C标签栏这样
任何帮助将不胜感激!谢谢
答
如果你用故事板,并希望保持导航栏和标签栏,你应该使用模式呈现
使用[self.navigationController performSegueWithIdentifier:@"MyInitialViewController" sender:self];
代替