I have an iOS app written in Swift with UITabBarController
with 5 UIViewControllers
. Now, I have a bunch of UIViewControllers
that are not part of the UITabBarController
. I'd like to be able to show that same tabbar but I have no idea how to do that. Any clue?
More details: This is one of the View Controllers that the tabbar has. I use storyboard references and split my view controllers into separate more manageable storyboards.
So, the big picture:
There's no initial ViewController since I use storyboardId to get to the initial Navigation Controller. From there we have a ViewController embedded in the same Navigation controller. In that ViewController, there are 2 Container views - one of the size of the bottom ViewController that contains the "hamburger" button that toggles the other Container View which has an embedded UITableView in. When a specific cell is selected it should go to Profile ViewController that's not even in the same storyboard. The segue is set to be Push. Either way, doesn't show the UITabBar on the Profile ViewController
UIViewController
s? If they are being pushed on to aUINavigationController
that's part of theUITabBarController
hierarchy then the tab bar should be visible. – Mihai FratuUITabBarController
has aUINavigationController
as one of it's items whenever you push a newUIViewController
on it's stack the tab bar stays in place. If you'd modally present it the tab bar will be hidden. – Mihai Fratu