i have the following situation:
I got a TabBarController with some tabs(ViewControllers).
When i am in one of these ViewControllers, i tap a button and i want to segue to a NavigationController AND still see the tabbar...
Here is what i did:
- I created a new ViewController(DetailViewController)
- I embedded this new ViewController(DetailViewController) in a NavigationController
- I created a segue(Show) from the "viewcontroller which is embedded in the tabbarcontroller" to the "new navigationcontroller"
I coded:
func buttonTapped { performSegue(withIdentifier: "shownavicontroller", sender: nil } override func prepare(for segue: UIStoryboardSegue, sender: Any?) { let destinationNavigationController = segue.destination as! UINavigationController let targetController = destinationNavigationController.topViewController as! DetailViewController }
What goes wrong:
- NavigationController is sliding from bottom to top... it should slide from left to right
- BackButton in NavigationController is missing
- TabBar in NavigationController is missing...
Anybody could help me with this issue?
Thanks and Greetings!!