Search code examples
swiftuisplitviewcontroller

UISplitViewController showing grey bar


We're using UISplitViewController. When displaying the detail view controller when not in "split mode" there is a grey bar at the top of the screen. Does anyone know why this is happening. The detail view displays correctly when in split view.

enter image description here


Solution

  • When viewing a tutorial on the subject I noticed that the detail view controller was embedded in a Navigation Controller. We followed that practice and it solved the issue. I'm not sure why this worked entirely.

    Our Storyboard now looks like:

    enter image description here