I am presenting a modal view controller above a UISplitViewController while being in Portrait mode. Now I rotate the iPad to the Landscape mode and dismiss the modal view controller.
It seems that UISplitViewController didn't receive the notification about the changed orientation: The 1st view of the split view controller is hidden, and the view of the 2nd is not occupying the whole screen size.
If I rotate again back and forth, the split view controller is displayed normally again.
Moreover, the problem occurs only with the iOS Simulator 5.0 (or the device running iOS5) but not with the 4.3.
Any ideas?
I'm having same problem.
In my project splitViewController is added as subview on window. And it receives rotation messages normally. But when I try to add my "modal" viewController as subview on window it does not receive rotation messages. Looks like rotation messages receive only subview at index 0. So I resolved it in this way:
Showing "modal" viewController
Hiding "modal" viewController
But there is one defect in this solution: a modalViewController will not load its view right after calling "
[appDelegate.window insertSubview:myModalViewController.view atIndex:0]
" method. To fix this defect I just present it as modal for a moment:Showing "modal" viewController:
I´m having same problem here: Not working Orientation Notifications in VIewController under modal, with iOS5.
To call the method you want in the mainController you must use those magic lines in the modal, just in the method controlling rotating:
In i id, you have the same object you uses as: yourConfigurationOfController, in this case UISPlit, i think. If i, is not your uiSplit you can arrive by cascade of variables. interfaceOrientationReceived is the orientation received in the modal in:
Hope could help! Good luck!
(Apologize my English :))