how to hide status bar when splash screen appears in iphone? how to hide status bar when splash screen appears in iphone? xcode xcode

how to hide status bar when splash screen appears in iphone?


I'm pretty sure that if your Info.plist file has the Status bar is initially hidden value set to YES, then it won't show while your application is loading. Once your application has loaded, you can re-show the status bar using UIApplication's setStatusBarHidden:animated: method.


The correct key in .plist is "UIStatusBarHidden" and make checked right side.It'l become "Status bar is initially hidden" then automatically. In my practice, you can control the StatusBar's show/hide anywhere by when hide:

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO];[UIApplication sharedApplication].keyWindow.frame=CGRectMake(0, 0, 320, 480); //full screen.

when show:

[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO];[UIApplication sharedApplication].keyWindow.frame=CGRectMake(0, 20, 320, 460); //move down 20px.

hope this was helpful to you.


View -> Property List Type -> iPhone Info.plist. Now, make a new item with "Status bar is initially hidden" checked.