title: popToRootViewControllerAnimated in alertView callback problem
body: <p>I have a data download process in my app that is initiated by a button click. The operation occurs on a background thread, so the user is free to navigate to other views and do as she likes.</p>
  
  <p>When the download completes, and alert is shown to the user saying that the app needs to be reloaded. When OK is clicked, the alertView clickedButtonAtIndex method is run. Inside this method I call popToRootViewControllerAnimated. </p>
  
  <p>If I have not navigated to other views, and have stayed on the view that the user initiated the download from, this works!! The problem is that if the user has navigated away from the download initiated view and clicks OK on the "reload app" alert, nothing happens. The user is not redirected back to the root view controller. It just stays in place...</p>
  
  <p>Can anyone help? Am I approaching this the wrong way? I need a process that either restarts the app or goes back to my root view controller, no matter where the user has navigated to after the download button was clicked.</p>
  
  <p>Worst case I will just shut the app down and tell the user that they need to restart to apply updates. I would rather steer clear of this and allow the user to stay in the app.</p>
  
  <p>Thanks for your help.</p>
  
  <p>UPDATE:</p>
  
  <p>Here's the code as requested:</p>
  
  <pre><code>- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
  if (buttonIndex != 0) {
      //User indicated that they want to restart the app so that they can apply the update
  
      cameFrom = CAME_FROM_RESTART;
  
      [self.navigationController popToRootViewControllerAnimated:NO]; 
  
  
       }
  </code></pre>