title: View Controller not presenting from App Delegate
body: <p>I am trying to load a viewController if there are no accounts logged in however it gives me this error <code>Warning: Attempt to present &lt;DefaultViewController: 0xb96cac0&gt; on &lt;MainViewController: 0xb95c320&gt; whose view is not in the window hierarchy!</code>
   Here is the code that I am using right now:</p>
  
  <pre><code>BOOL returnAllOff = [[User data] returnAllOff];
  
  if (returnAllOff) {
      DefaultViewController *viewController =[[DefaultViewController alloc]
      init];
      UIViewController *presentingController = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
      [presentingController presentViewController:viewController animated:YES completion:nil];
  
  }
  </code></pre>