I have the following setup:
- A subclass of
UISplitViewControllerthat creates the master and detail view controllers in the constructor. - Master and Detail view controllers that both override
shouldAutorotateToInterfaceOrientationto returnYES. - Detail view controller implements the
UISplitViewControllerDelegateprotocol and deals with the popover.
I am observing two weird issues that might be interrelated:
-
When the split view comes up (in portrait mode – default on simulator), the Master view is visible. It should not be.
-
When I rotate the simulator, the view does not “right” itself.
My UISplitViewController subclass does not override shouldAutorotateToInterfaceOrientation. However, both master and details view controllers do and return YES.
Any ideas what I might be doing wrong? Is this a simulator bug?
For anyone else who lands here: This was happening because my split view controller’s view was not the root. This is absolutely required.