I'v been trying to hide/remove the UITabBar from a UITabBarController. I've got a UITabBar in my iPhone version but I've moved the navigation to a new view controller for the iPad version. The new menu works using the UITabBarDelegate methods to switch between the UIViewControllers.
So far so good.
All I need now is to somehow hide the UITabBar.
I've got a custom UITabBarController and I've tried simply using self.tabBar.hidden = YES; but i need the view to fill the screen.
Thank you
Ive Found the answer I was looking for
Hope this is helpful to someone else
So you have a few options. Suppose that your tab views are navigation controllers. In that case you can have a temporary viewController that immediately pushes the "real" viewController you want to use, and the "real" one has the method below implemented. Later, by resetting the navigationControllers viewControllers array, you can get rid of the temporary controller for good.
If that does not work for you, then you can play games with the window.rootViewController. At launch, you create your viewController and make it the rootViewController. Later, when you want a tab bar, you can message back to the appDelegate to create a tabBarController and make your view the first viewController (as is!). I just verified this in a simple demo app using the Xcode Tab Bar project. Here is the code I used: