views:

350

answers:

1

I have an application with a tabBar containing 3 UISplitiViewControllers. Everything works well except for one scenario:

I have the ipad in landscape position on tab1. I click on tab3, then I rotate the ipad portrait mode. I click on tab1, it is well displayed in portrait mode, I'm happy.

I now come back to landscape position.

I click again on tab3 and there, the splitView controller is still displayed in "portrait mode". the delegate of my splitviewController in tab3 was never called.

Is there a way to force the rotation of this splitViewController in the "viewWillAppear"?

A: 

After a deep analysis of event bubbling, it appears that rotation events are not forwarded to hidden splitViews... There is no way to forward these events without using hidden apis.

Lots a developers have the same problem and this implementation of event management in splitView has been reported as a bug to apple, even though guidelines are to use only one splitView added to the root view of application.

Romain