iPad: SplitView does not rotate

Posted by raj.tiwari on Stack Overflow See other posts from Stack Overflow or by raj.tiwari
Published on 2010-05-05T01:58:57Z Indexed on 2010/05/05 2:08 UTC
Read the original article Hit count: 1029

I have the following setup:

  • A subclass of UISplitViewController that creates the master and detail view controllers in the constructor.
  • Master and Detail view controllers that both override shouldAutorotateToInterfaceOrientation to return `YES'.
  • Detail view controller implements the UISplitViewControllerDelegate protocol and deals with the popover.

I am observing two weird issues that might be interrelated:

  1. When the split view comes up (in portrait mode - default on simulator), the Master view is visible. It should not be.
  2. 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?

Thanks.

-Raj

© Stack Overflow or respective owner

Related posts about ipad-splitview

Related posts about iphone-sdk