Reputation: 53
I gotta create a UITabbarController and also Embed In a UINavigationController, to create a nice navigation system with TopBar and also the BottomBar. However, I feel I'm doing something wrong, because when I run the app I can't see the UITabBar with my two screens as options to navigate through. Can you guys take a look please?
Storyboard:
Simulator 2
That's how the UITabBar should looks like:
Upvotes: 0
Views: 59
Reputation: 100533
This is the correct structure
You have
1- Add another VC embed in a navigation
2- Control-drag from the tabBar to that UINavigationController
and select viewControllers
//
And you will get this
//
Upvotes: 2
Reputation: 1791
What you want is this:
TabBar -> Navigation Controller -> 1st ViewController with the tableView
TabBar -> Navigation Controller -> 2nd ViewController
but what you have is this:
TabBar -> Navigation Controller -> 1st ViewController with the tableView -> 2nd ViewController
Add another Navigation Controller connect it to the Tab Bar Controller (relationship segue: view controllers), now connect your second view controller to the Navigation Controller (relationship segue: root view controller)
Upvotes: 1