I want to use a UITabBar in my project. I did not create a project that is uitabbar based. I was wondering how for only one page I would be able to use a UITabBar. I can add it to the page, but I would like to add it and use it on a file and not throughout the whole project. I would also like to not restart this project since I have a navigation based project template being used and would like to just add the UITabBar to a single page to go back and forth with two views.
The flow of my project is Splash screen -> Login Page -> TableView -> TableView with search bar. What I want to do at the tableView with the search bar is to have a UITabBar at the bottom that will allow me to go between the one tableView to a calendar page and keep the search bar at the top. I could use a toolbar but I think the tabbar looks better.
Any help would be much appreciated.
First of all, just so you know, you'll be violating the HIG:
Users expect tab bars to be used for the highest-level navigation in their app, so using it in other situations is confusing, and I'd recommend that you go with a different UI paradigm.
Having said that, if your heart is set on doing this, it's easy to programatically create a tab bar controller:
And to set the tab bar items:
Then just do whatever you need to do with
tabBarController
: present it modally (shudder), push it onto a navigation controller (oh god, the humanity), or whatever.