title: Calling popToRootViewControllerAnimated after dismissModalViewControllerAnimated
body: <p>I am working application in which i calling <code>presentModalViewController</code> and once finished(calling <code>dismissModalViewControllerAnimated:YES</code>) it should immediately call <code>popToRootViewControllerAnimated</code>.</p>
  
  <p>But the issue is <code>dismissModalViewControllerAnimated:YES</code> is working properly but <code>popToRootViewControllerAnimated</code>is not working after it.</p>
  
  <p>The code is shown below:</p>
  
  <pre><code>[self.navigationController dismissModalViewControllerAnimated:YES] ;
  [self.navigationController popToRootViewControllerAnimated:YES];
  </code></pre>