Tab-Bar not hiding on all views

Posted by Sheehan Alam on Stack Overflow See other posts from Stack Overflow or by Sheehan Alam
Published on 2010-05-15T14:04:20Z Indexed on 2010/05/15 14:14 UTC
Read the original article Hit count: 257

I have a tab-bar controller that loads a RootView. The RootView has 4 buttons that will load a UITableView

I don't want my tab-bar to be visible in the RootView so I added the following code:

-(void)viewDidLoad{
    self.hidesBottomBarWhenPushed = YES;
}

When I initially load the app the tab-bar doesn't appear, but when I click on a button, and go back to the RootView the tab-bar still appears. I have tried placing this code in viewWillAppear and other application lifecycle methods but no luck.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about cocoa