title: Hide back button in navigation bar with hidesBackButton in Swift
body: <p>I want to hide the back button when transitioning from one view to another. I read the questions regarding this problem and every answer was "use <code>hidesBackButton</code>". The problem with this is:</p>
  
  <ul>
  <li><p>when I put it in viewDidLoad/viewWillAppear the back button arrow hides but the string "Back" doesn't.</p></li>
  <li><p>when I put it in viewDidAppear the back button disappears but it visible to the user</p></li>
  </ul>
  
  <p>How can I fix this?   </p>
  
  <p><strong>Edit:</strong>  </p>
  
  <p>Here is how you can replicate this problem(or bug?)<br>
  Make a new Tabbed application with Swift in Xcode. In the FirstViewController.swift use performSegueWithIdentifier to navigate to the second view controller. In the SecondViewController.swift hide the navigation bar back button using hidesBackButton and you will see what the problem is.</p>