Reputation: 821
I have the next structure:
* TabBarController
- ViewController with TableView
- ViewController
When I select any row on the TableView, the segue forwards me to the ViewController. On the ViewController with the TableView, I see the BottomBar, but after the segue it disappears.
How can I keep it on my ViewController? I've even putted the last ViewController in NavigationController, but it did not help me, too.
How can I fix it?
Upvotes: 1
Views: 4934
Reputation: 4657
Your hierarchy should look like this:
* TabBarController
- NavigationController
- ViewController with TableView
- ViewController
Using a Show
segue with an UINavigationController
pushes the destination view controller onto the navigation stack. However, most other view controllers present the view modally (i.e. by sliding over the source view controller) with Show
, which is why your tabbar disappears.
Upvotes: 10
Reputation: 1606
uncheck hide bottom bar when pushed from your view controller in story board
Upvotes: 7