Search code examples
iosobjective-cios7statusbar

Status Bar not hiding - iOS 7


I recently made a change to my project (Adding SWRevealController and Removing my TabbarController), and all of a sudden my status bar won't hide.

I have tried the following solutions:

  1. Hiding via IB Hiding in my base view controller using

    (BOOL)prefersStatusBarHidden 
    
  2. Hiding using this code in viewdidload.

    [self prefersStatusBarHidden]; 
    [self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)]; 
    
  3. Adding View controller-based status bar appearance set to NO to the plist file.

Solution

  • You can hide the status bar in your project General Settings.

    Click on YourApplication Target. Click on General Tab.

    select Hide During Application Launch option in Deployment Info Section.

    I am adding a screenShot for your convenience.

    enter image description here

    Your Project provide itself the option of hiding the status bar so why to add the same property in the .plist file.

    Enjoy Coding...!!!!