Force parentView to refresh view after navigation controller pops out a child view
===

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.

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.

Is there a way to force MainViewController to refresh the content?

On the MainViewController's viewWillAppear method, I have added setNeedsDisplay and layoutSubviews, etc.

    -(void) viewWillAppear:(BOOL)animated {
        [self.view setNeedsDisplay];
        [self.view layoutIfNeeded];
        [self.view layoutSubviews];
    }
but it is not reloading the view. I also tried the navigation controller's delegate method - willShowViewController but its not working.