title: how to hide status bar and navigation bar when tap device
body: <p>How to hide status bar and navigation bar when I tap the device like photos in iphone?
  I had used</p>
  
  <pre><code>UIApplication.sharedApplication().setStatusBarHidden(false, withAnimation: UIStatusBarAnimation.Slide)
  </code></pre>
  
  <p>but it's not working.</p>
  
  <p><strong>Edit</strong>: I'd like to hide and show status bar and navigation bar, not permanently hide it.</p>