title: Navigation Controller & TableView: NavBar Hidden after hidden = true one time
body: <p>I have a UITableView embedded in a NavigationController. The cells each link out to a larger information ViewController. For UI purposes, I hide the Navigation Bar on the TableView and show it in the InfoViewController. </p>
  
  <p>The problem I am experiencing is this: upon booting the app, the NavBar is successfully hidden on the TableView. The first time I tap into a cell and open an InfoViewController, the NavBar comes back as expected. I back out of that VC and into the TableView. Again, the NavBar is hidden, as expected. If I tap into another cell, the NavBar is not displayed as expected. NOTE: This happens even when I remove any code to hide the Navigation Bar. </p>
  
  <p>Here are the relevant code snippets: </p>
  
  <p>TableViewController (in ViewDidLoad()): </p>
  
  <p><code>self.navigationController?.isNavigationBarHidden = true</code></p>
  
  <p>InfoViewController: </p>
  
  <pre><code>override func viewWillAppear(_ animated: Bool) {
      self.navigationController?.navigationBar.isHidden = false
      super.viewWillAppear(animated)
  }
  </code></pre>
  
  <p>Why would it work the first time, but not the second. Any help is appreciated! </p>
  
  <p>For clarification:</p>
  
  <p>App opens to TableView:</p>
  
  <p><a href="https://i.stack.imgur.com/x8MeF.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>I click into the TableViewCell to Segue to InfoViewController:</p>
  
  <p><a href="https://i.stack.imgur.com/Gu4vc.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>I hit "Back" to go back to TableViewController. NavBar is still hidden. I click on the same cell: </p>
  
  <p><a href="https://i.stack.imgur.com/O4zb2.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>EDITED: Messed up the TableViewController Code. Put <code>= false</code> instead of <code>= true</code>.</p>
  
  <p>Also, I have one more thought, please someone check this for me. The TableViewController is inside a UIContainerView. It is almost as if when I hit "Back" I am exiting the NavigationController flow and I cannot get back in it. </p>