Search code examples
iosswiftstoryboarduitabbarcontrolleruisplitviewcontroller

SplitViewController DetailView not extending behind TabBarController


I'm using a UITabBarController to display a SplitViewController inside. Both the MasterView and DetailView have a separate NavigationController and a TableView inside.

So far so good, everything is working except, that the DetailViewController isn't extending the edges behind the TabBar.

If I inspect the views you can clearly see the problem:
3D view of views

But both the NavigationController and TableViewController share the same settings in Master and Detail:
enter image description here


Solution

  • Sorry for that rather dump mistake, but I found out that I've added self.edgesForExtendedLayout = [] to my viewDidLoad() in my DetailViewController.
    Removing this fixed my described problem.