iphoneipadios4ios-4.2

Forcing an iPad app to show splitView even in Portrait orientation(Like the Settings iPad app)


I am trying to develop a splitView based iPad app, that displays the split interface in every orientation. I have tried subclassing the UISplitViewController class as given in this tutorial, but it doesn't work. I tried creating a category to set _hidesMasterViewInPortrait = (hidden) ? 0 : 1;, as suggested in one of the comments in the above blog, but nothing worked.

Can anyone help me to find a way out of this, without using any third party frameworks or classes?


Solution

  • I never achieved to force the SPlitViewController to do that but since you need to create controllers for both parts, you can just reuse those controllers to display the content the way you want it.