title: Add a navigation bar to a view in code, without a navigation controller
body: <p>I have a problem with my nav bar in Swift. I move from one view controller to another like this: </p>
  
  <pre><code>let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
  
  let nextViewController = storyBoard.instantiateViewControllerWithIdentifier("GameViewController") as GameViewController
  nextViewController.transitioningDelegate = self.transitionManager
  self.presentViewController(nextViewController, animated:true, completion:nil)
  </code></pre>
  
  <p>But when I see my second view controller, it disappears. I can't use a segue here.</p>
  
  <p>How do I add a navigation bar, with a bar button item, without a Navigation controller in Swift?</p>
  
  <p>I saw this: <a href="https://stackoverflow.com/questions/23859785/">Add a navigation bar to a view without a navigation controller</a></p>