Inferis/ViewDeck — Issue #25: hidesBottomBarWhenPushed not working
Author: sleaveruk
Created: 2012-02-01 13:43:51+00:00
State: open

When using the following code, the UITabBarController that I'm using is not hidden:

self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:nextViewController animated:YES];
self.hidesBottomBarWhenPushed = NO;

If I create the UITabBarcontroller without IIViewDeckController in my app delegate then the tab bar is hidden.

I create by UITabBarController by using the following code. It's just one tab, there are actually more:

//ViewDeck Setup
NewsNavigationMenuViewController *menuController = [[NewsNavigationMenuViewController alloc] init];
CombinedNewsViewController *combinedNews = [[CombinedNewsViewController alloc] init];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:combinedNews];
navigationController.navigationController.navigationBar.tintColor = [UIColor blackColor];
IIViewDeckController *revealController = [[IIViewDeckController alloc] initWithCenterViewController:navigationController leftViewController:menuController rightViewController:nil];
revealController.title = @"News";

//create an array of views that will be passed to our tabbar
NSArray *viewsArray = [NSArray arrayWithObjects:revealController, nil];

//Now create our tab bar controller
TabBarController *tabBarController = [[TabBarController alloc] init];
//then tell the tabbarcontroller to use our array of views
[tabBarController setViewControllers:viewsArray];
//then the last step is to add the our tabbarcontroller as subview of the window
self.window.rootViewController = tabBarController;

[window makeKeyAndVisible];