D
D
doublench212017-09-05 21:00:56
iOS
doublench21, 2017-09-05 21:00:56

RootViewController does not appear on swipe in SplitViewController when installing a delegate?

If the UISplitViewControllerDelegate delegate is not set, then the picture is normal, I can "pull out" my RootViewController with a swipe:
f02be151bc7a435b87f836e2d80b7943.png
Once I set the delegate:

// MARK: Lifecycle methods

  override func viewDidLoad() {
    super.viewDidLoad()

    splitViewController?.delegate = self
    
  }
I can’t “pull out” anything more with a swipe. You have to switch to landscape mode and work from there. Why is this happening?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Tikhonov, 2017-09-06
@doublench21

Maybe you're overriding the delegate methods somehow incorrectly .
To experiment, create an empty master-detail project and check how the application behaves if you set or do not set a delegate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question