-1

Set Target/General/Deployment info to Hide status bar. Set None for Status Bar in VCs in storyboards. Added the following code to all VCs.

override var prefersStatusBarHidden: Bool {
    return true
}

Briefly hides status bar but immediately reappears.

agent86
  • 105
  • 12
  • "Set Target/General/Deployment info to Hide status bar" Irrelevant! "Set None for Status Bar in VCs in storyboards" Irrelevant! Stop thrashing. Only your implementation of `prefersStatusBarHidden` matters. – matt Oct 09 '16 at 14:29
  • Tried that first, is not working. Split VC, added to master and detail. – agent86 Oct 09 '16 at 14:42

1 Answers1

0

Only the prefersStatusBarHidden of the root-level view controller matters — here, the split view controller. The split view controller wants a status bar; it gets a status bar. That is all that matters.

You could try subclassing UISplitViewController, setting prefersStatusBarHidden in your subclass, and using that subclass in the app.

matt
  • 515,959
  • 87
  • 875
  • 1,141