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

前端 未结 9 1379
不知归路
不知归路 2020-12-16 08:25

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

相关标签:
9条回答
  • 2020-12-16 08:53

    In iOS8 (Swift), use this:

    splitViewController.preferredDisplayMode = UISplitViewControllerDisplayMode.AllVisible
    
    0 讨论(0)
  • 2020-12-16 08:53

    hello my first post and i hope to help:

    here is the way it works

    [splitViewController setHidesMasterViewInPortrait:NO];
    
    0 讨论(0)
  • 2020-12-16 08:55

    you can subclass UISplitViewController, then overwrite following method:

     - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation duration:(NSTimeInterval) duration
    
    0 讨论(0)
提交回复
热议问题