title: Hide navigationBar, Show navigationBar
body: <p>I met with a problem. At first some code from AppDelegate.</p>
  
  <pre><code> - (void)HideMainNavigationBar{
  navigCtrl.navigationBarHidden = YES;
  }
  
  - (void)ShowMainNavigationBar{
  navigCtrl.navigationBarHidden = NO;
  }
  </code></pre>
  
  <p>navigCtrl is my navigation controller.
  In my other View Controller I need hide my navigationBar and then show it, to display it correctly.</p>
  
  <pre><code>- (void) moviePlayerWillExitFullScreen:(id)sender {
     NSLog(@"exitfullscreen");
     AppDelegate *ptr = [AppDelegate SharedAppDelegate];
     [ptr HideMainNavigationBar];
     [ptr ShowMainNavigationBar];
  }
  </code></pre>
  
  <p>After that, instead of my custom tabBarButton I saw Back button:</p>
  
  <p><img src="https://i.stack.imgur.com/9VfC9.png" alt="enter image description here"></p>
  
  <p>After tap ob Back button, it disappears, and I see my navigationBar again with my custom button. This 'bug' was detected in iOS 5.1, on iOS 4.3.2 everithing is ok.</p>
  
  <p>This makes me crazy, help please.</p>
  
  <p>P.S. I know, that I can use:</p>
  
  <pre><code>self.navigationController.navigationBar.frame = CGRectMake(0, 20, self.navigationController.navigationBar.frame.size.width, self.navigationController.navigationBar.frame.size.height);
  </code></pre>
  
  <p>to display navigationBar correctly, but i need to show/hide navigationBar to hide it, while rotating VideoPlayer.</p>
  
  <p>Any ideas?
  Wait your answers, thanks.</p>