Question

In iOS 7, TabBar hides when I used nextviewcontroller.hidesBottomBarWhenPushed = YES; but need tabbar to be shown again when I pop back to the viewcontroller.
Its not coming back by using nextviewcontroller.hidesBottomBarWhenPushed = NO;
Any help will be appreciated .

Was it helpful?

Solution

this solved my problem:

- (void)viewWillAppear:(BOOL)animated { 
    self.tabBarController.tabBar.hidden = YES; 
}
- (void)viewWillDisappear:(BOOL)animated {
    self.tabBarController.tabBar.hidden = NO; 
}

OTHER TIPS

I found simplest way to achieve hide and show of UITabBar.

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

So right after you push the view controller set the hidesBottomBarWhenPushed = NO; this way Tabbar would be shown when you come back to view controller.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top