Reputation: 53540
I have a UINavigationBar based application - only a one navigation bar that is handling all the work with views in my app.
And I want to have a tab bar at a bottom part of every view that will take the user to whatever view he would like to go.
What is the easiest way to add a tab bar to an application?
Thank you in advance, Ilya.
Upvotes: 0
Views: 1281
Reputation: 17404
Be sure to add the tabBar ABOVE your navigation bar in your view hierarchy. Depending on the structure of your user flow, you may end up with multiple navigationControllers.
tabBarController (w/ 3 sections, in this example) | ------------------------------ | | | navController1 navController2 navController3
Each navController maintains it's own stack.
Upvotes: 1
Reputation: 11050
If you want to have a tab bar that is the same for all your views and is always visible, then you have to:
change your applicationDidFinihedLaunching method to look like the following code.
Upvotes: 2