title: Can't Hide Status Bar—Swift 3,
body: <p>I usually hide the status bar with</p>
  
  <pre><code>override func prefersStatusBarHidden() -&gt; Bool {
      return true
  }
  </code></pre>
  
  <p>but Xcode is giving me an error, saying "Method does not override anything from its superclass".</p>
  
  <p>If I delete the <code>override</code>, Xcode gives a different error: "Method 'prefersStatusBarHidden()' with Objective-C selector 'prefersStatusBarHidden' conflicts with getter for 'prefersStatusBarHidden' from superclass 'UIViewController' with the same Objective-C selector"</p>
  
  <hr>
  
  <p>I also have "Hide Status Bar" checked in my Target's general settings:</p>
  
  <p><a href="https://i.stack.imgur.com/wu1rr.png"><img src="https://i.stack.imgur.com/wu1rr.png" alt="enter image description here"></a></p>
  
  <p>but the status bar still shows up.</p>
  
  <hr>
  
  <p>I found this method in another Stack Overflow answer</p>
  
  <pre><code>UIApplication.shared.setStatusBarHidden(true, with: .none)
  </code></pre>
  
  <p>but that doesn't hide the status bar either.</p>
  
  <hr>
  
  <p>In Xcode 8 Beta 1, I used the first and second methods, which worked to hide the status bar (the first method did not return an error). What can I do now to hide the status bar, with Xcode 8 Beta 4?</p>
  
  <p>Note: The status bar shows up on Simulator devices and physical devices, all running iOS 10.</p>