Display a toolbar in a pressed view controller in a tab bar controller

I have a navigation controller in a tab bar controller. When I click on the new view controller, I want to show the toolbar. I am doing this as shown.

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self.navigationController setToolbarHidden:NO animated:NO];
}

This works, but the toolbar slides out of it to its normal position, where the tab bar should go beyond it. I want it to appear without this "slide up" animation above the tab bar. Is it possible?

Here is my setup. The slideshow animation occurs when you click from the view controller 1 to view controller 2. I want the toolbar to display as controller 2.

[Tab Bar Controller]
  - [Navigation Controller]
     - [View Controller 1] -> Push -> [View Controller 2]
+4
4

, , .

, Nav

+2

, " ",

enter image description here

+2

destinationVC.hidesBottomBarWhenPushed = YES;?

Apple docs

+2

[self.navigationController setToolbarHidden:NO animated:NO]; viewWillAppear viewDidload, .

+2
source

All Articles