I need to go programmatically to a viewcontroller from another Storyboard. From here easy. But the problem is: that viewController is embedded in a navigation controller, and this one into a tabBarController (see image)
I've tried:
let storyboard = UIStoryboard(name: "Inside", bundle: nil)
let viewcontroller = storyboard.instantiateViewController(withIdentifier: "controller_id")
let navigationController = UINavigationController(rootViewController: viewcontroller)
self.present(navigationController, animated: true, completion: nil)
What I get with this is: I go to the correct controller, with navigation controller working, but no tabbarcontroller
Another try:
let storyboard = UIStoryboard(name: "Inside", bundle: nil)
let tabbar = storyboard.instantiateViewController(withIdentifier: "tab_id")
let navigationController = UINavigationController(rootViewController: tabbar)
self.present(navigationController, animated: true, completion: nil)
In this case, tabbar is working, but no navigationcontroller.
And... try number 3:
let storyboard = UIStoryboard(name: "Inside", bundle: nil)
let tabbar = storyboard.instantiateViewController(withIdentifier: "tab_id")
let viewcontroller = storyboard.instantiateViewController(withIdentifier: "race_id")
let navigationController = UINavigationController(rootViewController: tabbar)
navigationController.pushViewController(viewcontroller, animated: false)
self.present(navigationController, animated: true, completion: nil)
In this case, the behaviour is so strange... I appear in the correct controller, but with a back button. If I click I go to the same correct controller... with the tabbarcontroller... and then navigationcontroller disappear... nice :S
Any way to go programmatically to the correct controller and get working the tabbar & navigation?

UIStoryboard(..).instantiateInitialViewController()? - wfbarksdaleInsidestoryboard by id - svvoffI need to go hereas theRootViewControllerof aNavigationControlleras Tab "B"? - DonMag