Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Hiding status bar in iOS 7

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 398
    Comment on it

    One of the changes in iOS 7 API's is hiding the status bar. Prior to iOS 7 we could hide status bar by using :

    [[UIApplication sharedApplication] setStatusBarHidden:YES];
    

    But now there is a slight change. We need to add a row "View controller-based status bar appearance" in our app's info.plist file and set it to NO and then use the above code. We can also add animation while hiding status bar :

    [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: