Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Taum

macrumors member
Original poster
Jul 28, 2008
56
0
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 :(
 

Taum

macrumors member
Original poster
Jul 28, 2008
56
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.