I am writing an iPad application which uses a menu from a popover to change the view displayed. I have a root view controller which is always present and changes its content view to the sub view controllers, e.g Home, News, etc...
Now here's the problem: Let's say I'm on the Home controller in portrait mode, then go to the news controller, then rotate to landscape, the root controller rotates fine and so does the news controller it contains. But when i go back to the home controller, it is still in portrait mode. The view is rotated to landscape orientation but its size is still in portrait so the width is still (768 px wide). The root view controller which presents all subcontrollers rotates correctly the content view does not rotate if it is not present
How do I fix this? I'm thinking something I could set in viewWillAppear but trying to set the interfaceOrientation forcefully does not work as it is readonly.
Thanks