Joey J
Joey J

Reputation: 1365

UISplitViewController - Is there a way to autorotate without custom implementation?

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

Answers (1)

Mark Adams
Mark Adams

Reputation: 30846

UISplitViewController will rotate automatically as long as both of it's child view controllers return YES from -shouldAutorotateToInterfaceOrientation:.

Upvotes: 2

Related Questions