views:

24

answers:

0

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.