I know there are a multitude of questions regarding putting a navigation controller into a tabbar controller, but I want to change my navigation project to a tabbar project. I’m just not sure what exactly I need to change because I feel like I have to mess with some code and IB.
In code:
Is all I need to do is replace the navigationController with a tabBarController in my appDelegate
In IB:
Drag a tabBarController into my Objects and then do I drag my entire navigationController object into the tabBarController or just the RootViewController that is inside the navigationController?
Thanks for any advice on this. Normally, I would just give it a try but I feel like I could mess too much up.
Its an entirely new framework now as you want to shift from a
UINavigationControllerto aUITabBarController. Just keep your view controllers as it is – you do not need to delete them.rootViewController.Use either the IB or code for creating them. If you use the IB, then open up a tabbarcontroller, and for each tabBarItem, assign the class to the different view controllers you had created. If you are doing this by code, I would suggest that you create an array of view controllers and add them to the TabBar.