How to hide the UITabBar?

Discussion in 'Public Game Developers Forum' started by kohjingyu, Jul 21, 2009.

  1. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    Hey guys,
    Is there any way to hide the UITabBar of an application? Like when I press a button it is hidden then when I press another button it is shown.

    Thanks.
     
  2. jonusx

    jonusx Active Member

    May 12, 2009
    43
    0
    0
    Its a great pain in the butt. If you look at the way apple does it, they use a new view in a modal view controller. The hard way is to move it off the screen with code, which, depending on your views inside the tabbar, can cause a whole load of issues. If your pushing a view controller, you can use
    <thePushedViewController>.hidesBottomBarWhenPushed = YES before you push it onto the stack
     
  3. grid

    grid Well-Known Member

    Feb 17, 2009
    122
    0
    0
    iPhone Game Dev
    Minneapolis, MN
    Can't you just [tabBar setHidden:YES] ?

    There's a convenience method for NavControllers, but I don't see one for Tab controllers... ([navController setNavigationBarHidden:YES animated:YES]) ...you could always make your own, but that does seem like a pain, it's true.
     

Share This Page