PDA

View Full Version : hidesBottomBarWhenPushed woes




Taum
Jul 28, 2008, 05:45 PM
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 :(



jguru
Jul 28, 2008, 10:41 PM
I am having a similar issue and looking for solutions..

supertoto
Aug 30, 2008, 11:38 AM
I guess it's really a bug.:):)

Taum
Aug 30, 2008, 04:42 PM
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.