I have storyboard starting with UINavigationController
then UIViewController
and from this UIViewController
just a segue to UITabbarController
. I want this UITabbarController
reference but from another view controller, How I can get this?
You can make this with Storyboard ID. Set a Storyboard ID to TabBarController.
And here is the code that you can call it where you want.
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"nameOfStoryboard" bundle:nil];
TabBarController * destViewController = [storyboard instantiateViewControllerWithIdentifier:@"TheIDOfTabBarController"];
[self.navigationController pushViewController:destViewController animated:YES];