title: Error when I'm using segue to move from one viewController to another in swift 2
body: <p>I'm using segue to move from one view controller to another and I connected the first and second view from layout also but when moving from first to the second view the following error appear and the app return again to the registration screen( the first screen before Enter PIN ) , I know all concepts about using segue to move from view Controller to another also i used it before and it's working correctly but I don't know what is the problem in this case!</p>
  
  <p>First View Controller name : EnterPINVC</p>
  
  <p>Second View Controller name : chooserViewController</p>
  
  <p>segue identifier name : enter_main</p>
  
  <p>Code : This line for moving from first to second activity after some of process </p>
  
  <pre><code>                    self.dismissViewControllerAnimated(true, completion: nil )
  
                      self.performSegueWithIdentifier("enter_main", sender: self)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>present &lt;ÿ™ŸàÿßÿµŸÑ_.chooserViewController: 0x12d884d00&gt; on &lt;ÿ™ŸàÿßÿµŸÑ_.EnterPINVC: 0x12d8b2d80&gt; whose view is not in the window hierarchy!
  </code></pre>