title: whose view is not in the window hierarchy after self.presentviewController
body: <p>i've searched a solution but nothing.</p>
  
  <p>My problem:</p>
  
  <p>In <code>AppDelegate</code> i call:</p>
  
  <pre><code>window = UIWindow(frame: UIScreen.mainScreen().bounds)
          var vc = ViewController()
          self.window.rootViewController = vc
          window.makeKeyAndVisible()
  </code></pre>
  
  <p>I need to call <code>ViewController()</code> where, in <code>ViewDidLoad</code>, i evaluate if the user is logged, then if yes i call an view controller (not implemented yet), otherwise i call <code>AccessLoginViewController()</code>in this mode:</p>
  
  <p>let vc = AccessLoginViewController()<br>
  self.presentViewController(vc, animated: true, completion: nil)</p>
  
  <p>and there i've then warning and AccessLoginViewController() does not appear... </p>
  
  <p>Can you help me? What's wrong?</p>