title: Hide status bar in iOS without removing its view
body: <p>I want to hide status bar in my iPhone app on a button press and I want to show it again on pressing another button.</p>
  
  <p>I tried to hide the status bar by overriding <code>-(BOOL)prefersStatusBarHidden</code> in my view controller but this also removes its view from the top. </p>
  
  <p>So a jump is seen on removing this status bar. What I want to do is just to hide the content on the status bar while keeping the background of status bar.<br>
  For example: You can check the same functionality in gmail app. When you open the side drawer in gmail app, then only the contents on status bar are hidden and there is no jump.</p>