title: Swift Xcode Button not showing next view
body: <p>I'm trying to code a button that simply switches to the next view. So I embedded the first ViewController into a navigation controller then I dragged in another view controller, created a new class name ViewController2 and associated that class with the second ViewController and came the second view controller a storyboard id:"view2". Then in the Button's function I added this code:</p>
  
  <pre><code>@IBAction func newGamePressed(sender: AnyObject) {
  
      let view2 = self.storyboard?.instantiateViewControllerWithIdentifier("view2") as   
  ViewController2
      self.navigationController?.pushViewController(view2, animated: true)
  
  }
  </code></pre>
  
  <p>However when i click on the button, literally nothing happens!!! what am i doing wrong???</p>