Reputation: 1365
My program uses a UISplitViewController as the root view controller. In order to get the split-view to autorotate when the device orientation changes I need to subclass UISplitViewController and have it return YES in shouldAutorotateToInterfaceOrientation:
Is there a way to have the standard, ie generic UISplitViewController, autorotate? It seems silly to have to write an entire new subclass just to support orientation changes...
Thanks! - Jake
Upvotes: 0
Views: 731
Reputation: 30846
UISplitViewController
will rotate automatically as long as both of it's child view controllers return YES
from -shouldAutorotateToInterfaceOrientation:
.
Upvotes: 2