UISplitViewController iOS 14

In iOS 14, Apple added two styles for the split view controller: the double column and triple column style. There is also the unspecified column style in which the split view controller behave like under iOS 13.

How with Xcode 12 can I have a split view controller with the unspecified column style?

Thanks
Answered by AnthonyVO in 624731022
I found a solution. I use a xib with the split view controller inside. With this, it behaves like under iOS 13.
Accepted Answer
I found a solution. I use a xib with the split view controller inside. With this, it behaves like under iOS 13.
Can you provide more details on how you were able to restore the iOS 13 functionality of UISplitViewController on beta 3?
Yes please AnthonyVO, can you please explain better your solution?

Thank you
Yes sorry guys. I didn't receive mail for your posts.

  1. Create a xib file empty

  2. Add a splitviewcontroller inside and change the class name to the name of your own splitviewcontroller

  3. Instantiate it with a code like that :

Code Block
MySplitViewController *splitVC = [[MySplitViewController alloc] initWithNibName:@"UnicornSplitViewController" bundle:nil];

4. Use it as before


A second solution is even simpler:
Code Block
MySplitViewController *splitVC = [[MySplitViewController alloc] init];


After you can set yours master and detail view controller on it



Hello everyone, I was going through this same problem. User nickx found another solution. Here's the link on StackOverflow.

The idea is to implement the new splitViewController(_:topColumnForCollapsingToProposedTopColumn:) delegate method. Here's what's worked for me.

Code Block
func splitViewController(_ svc: UISplitViewController, topColumnForCollapsingToProposedTopColumn proposedTopColumn: UISplitViewController.Column) -> UISplitViewController.Column {
  // This guarantees the app launches in chart list when on portrait mode
    return .primary
}

UISplitViewController iOS 14
 
 
Q