I want to hide the status bar in the iPhone application when a button is pressed, and I want to show it again when another button is pressed.
I tried to hide the status bar by overriding -(BOOL)prefersStatusBarHiddenin my view controller, but this also removes its top view.
So, when you delete this status bar, a jump occurs. What I want to do is just hide the contents in the status bar while keeping the background status of the status bar.
For example: you can test the same functionality in the gmail application. When you open the side box in the gmail application, then only the contents of the status bar are hidden and there is no transition.
source
share