title: How to pop to root view controller with view hierarchy containing multiple Navigation controllers
body: <p>I have a view hierarchy with <strong>multiple</strong> <strong>UINavigationControllers</strong></p>
  
  <p>Now from a particular view controller, I wanted to pop to window.rootviewcontroller</p>
  
  <p>How can I do that?</p>
  
  <p>I tried</p>
  
  <p>[UIApplication sharedApplication].keyWindow.rootViewController popToRootViewController];</p>
  
  <p>But it does not work. Please suggest.</p>
  
  <p>Please note I want to go to window.rootVC. </p>
  
  <p>THis will not work for me </p>
  
  <pre><code> [self.navigationController popToRootViewControllerAnimated:YES];
  </code></pre>