title: popToRootViewController brings last view over navigation bar
body: <p>I am running into a weird issue which when i use back functionality in my navigation hierarchy using  </p>
  
  <pre><code> [self.navigationController popViewControllerAnimated:YES]; 
  </code></pre>
  
  <p>it works fine and navigation is smooth but I am using popToRootViewController so as to perform 'Back to Home' functionality from that same viewcontroller it brings the header of that view controller over the navigation bar after navigation is done Although I am on the root view controller i am using translucent navigation bar as a navigation bar The structure i am following is my HomeViewController is root view controller while rest all of the view controllers are pushed on to that root view controller.however i use this code in my SideMenuViewController which added as a child view controller onto my Navigation hierarchy.
  i am using the following line to return to home.</p>
  
  <pre><code>[self.navigationController popToRootViewControllerAnimated:YES];
  </code></pre>
  
  <p>Hope my question is clear now.
  Any suggestion would be highly appreciated.thanks in advance.below image explains how it looks like after using popToRootViewController.
  <a href="https://i.stack.imgur.com/Igc5V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Igc5V.png" alt="this is how my view looks like after popToRootViewController "></a></p>