Search code examples
iphoneobjective-cios7xcode5mobile-application

Need TabBar to be shown again when I pop the ViewController in iOS 7


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 .


Solution

  • this solved my problem:

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