title: Warning: attempt to present VC
body: <p>I am getting this warning, and I am not sure why. I tried getting rid of it by adding the subview but that didn't solve my problem either. Help please</p>
  
  <p>Warning: Attempt to present  on  whose view is not in the window hierarchy!</p>
  
  <p>Here is the code I am using on one VC:</p>
  
  <pre><code>[self dismissViewControllerAnimated:YES completion:^{
          [self presentViewController:rootViewContoller animated:YES completion:nil];
      }];
  </code></pre>
  
  <p>Edit: my app still works properly in regards to presenting view controllers I just want to know why the compiler is generating this warning</p>