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?
In iOS8 (Swift), use this:
splitViewController.preferredDisplayMode = UISplitViewControllerDisplayMode.AllVisible
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With