hidesBottomBarWhenPushed woes

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

  1. macrumors member

    Joined:
    Jul 28, 2008
    #1
    Hi,

    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. macrumors member

    Joined:
    Apr 10, 2008
    #2
    I am having a similar issue and looking for solutions..
     
  3. macrumors newbie

    Joined:
    Jul 29, 2008
  4. thread starter macrumors member

    Joined:
    Jul 28, 2008
    #4
    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