title: Warning: attempt to present ViewController whose view is not in the window hierarchy
body: <p>In one of my apps, I'm calling a viewController from the <code>application didReceiveLocalNotification</code> method. The page loads successfully, but it shows a warning as :</p>
  
  <pre><code> Warning: Attempt to present &lt;blankPageViewController: 0x1fda5190&gt; on 
   &lt;ViewController: 0x1fd85330&gt; whose view is not in the window hierarchy!
  </code></pre>
  
  <p>My code is as follows :</p>
  
  <pre><code> -(void) application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
  
      blankPageViewController *myView = [[blankPageViewController alloc] 
                 initWithNibName:@"blankPageViewController" bundle: nil];
      myView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
      [self.viewController presentViewController:myView animated:NO completion:nil];  
  }
  </code></pre>