title: Force parentView to refresh view after navigation controller pops out a child view
body: <p>I have secondViewController that can display content in both landscape and portrait view. The MainViewController (parent of secondViewController) can only display content in landscape mode.</p>
  
  <p>When SecondView is in portrait mode and is pop out, the view the MainViewController (which is supposed to display content in landscape mode only) displays content in portrait. It does not refresh to landscape mode.</p>
  
  <p>Is there a way to force MainViewController to refresh the content?</p>
  
  <p>On the MainViewController's viewWillAppear method, I have added setNeedsDisplay and layoutSubviews, etc.</p>
  
  <pre><code>-(void) viewWillAppear:(BOOL)animated {
      [self.view setNeedsDisplay];
      [self.view layoutIfNeeded];
      [self.view layoutSubviews];
  }
  </code></pre>
  
  <p>but it is not reloading the view. I also tried the navigation controller's delegate method - willShowViewController but its not working.</p>