title: ViewController hierarchy
body: <p>I have a scenario like this:
  I have a <code>MovieViewController</code> it serves as my intro for my app(It is the Initial View Controller in my storyboard). Its goes to another view controller named <code>MenuViewController</code> either by:</p>
  
  <ul>
  <li>Movie Ends </li>
  <li>Detected Touch</li>
  </ul>
  
  <p>So the sequence now is this:
  <code>MovieViewController</code> ----->  <code>MenuViewController</code>  ---> (Then three buttons corresponding to different Views)</p>
  
  <p>According to my older question here: <a href="https://stackoverflow.com/questions/12704984/warning-about-window-hierarchy">Warning about window hierarchy</a></p>
  
  <p>I correspond to the answer and edit my code, but still the error occurs in my debugger.</p>
  
  <blockquote>
    <p>Warning: Attempt to present  on
     whose view is not in the window
    hierarchy!</p>
  </blockquote>
  
  <p>It still occurs several times, Is there a way to make the <code>MenuViewController</code>  the main view after <code>MovieViewController</code> is shown? or dismiss/ remove it after the movie ends/shown.</p>
  
  <p>Thanks for your guide.</p>