Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 308
Vin Avatar asked Nov 27 '22 03:11

Vin


1 Answers

In iOS8 (Swift), use this:

splitViewController.preferredDisplayMode = UISplitViewControllerDisplayMode.AllVisible
like image 168
ccwasden Avatar answered Dec 22 '22 00:12

ccwasden