hidesBottomBarWhenPushed woes

Discussion in 'iOS Programming' started by Taum, Jul 28, 2008.

  1. Taum macrumors member

    Jul 28, 2008

    I've got an application that uses a Tab Bar along with a Navigation Controller. I think that's pretty basic so far.
    The thing is, I only need the TabBar at the first level, then browsing in the navigation tree should keep the TabBar hidden.

    I set hidesBottomBarWhenPushed = YES on every view controllers I push on the stack. This works when digging into the hierarchy. However when said controller gets popped, the TabBar is visible again, *even though the current controller still has hidesBottomBarWhenPushed set to YES*.

    You can picture it like this :
    RootViewController -> Level 1 controller -> Level 2 controller

    - Both Level1 and Level2 controller have hidesBottomBarWhenPushed = YES.
    - Popping Level2 controller show Level1 controller (OK) *with* TabBar (Oops).

    Am I the only one running into this issue ? Has anyone found a workaround or another way to hide the TabBar ?

    Besides, am I the only one thinking this API is seriously flawed ? simply setting showTabBar = NO in my UITabBarController would have been fine ... but I can't see anything of the sort :(
  2. jguru macrumors member

    Apr 10, 2008
    I am having a similar issue and looking for solutions..
  3. supertoto macrumors newbie

    Jul 29, 2008
  4. Taum thread starter macrumors member

    Jul 28, 2008
    No actually, I finally found a "solution" to this problem. Only the Level1 controller should have hidesBottomBarWhenPushed = YES. I guess it's just the documentation/method name that is confusing.

Share This Page