title: Hide navigation bar, but when I transition to the previous view (popped) it shows the old back button temporarily. Why?
body: <p>I have view controllers in a navigation controller (root: <code>RootViewController</code>, second: <code>ReadingViewController</code>), but in the second view controller I want to disable the navigation bar for a <code>UIToolBar</code> (as I don't need the title and want more buttons, like in iBooks or the Facebook app). Problem is, when I hide the navigation bar in the second view, it appears randomly for a second again when I pop the view controller (go back).</p>
  
  <p>When I pop the view controller the back button appears for a second:</p>
  
  <p><img src="https://i.stack.imgur.com/dm0wC.png" alt="enter image description here"></p>
  
  <p>In the second view controller I hide the nav bar in <code>viewWillAppear:</code>:</p>
  
  <pre><code>- (void)viewWillAppear:(BOOL)animated {
      [super viewWillAppear:animated];
  
      [self.navigationController setNavigationBarHidden:YES animated:YES];
  }
  </code></pre>
  
  <p>Also in the second view controller, I restore the nav bar in <code>viewWillDisappear:</code>:</p>
  
  <pre><code>- (void)viewWillDisappear:(BOOL)animated {
      [super viewWillDisappear:animated];
  
      // ... other stuff
  
      [self.navigationController setNavigationBarHidden:NO animated:YES];
  }
  </code></pre>
  
  <p>I'm wondering how I combat this issue so that the view controllers transition seamlessly.</p>