How to show status bar initially hidden from plist iphone

JackTurky picture JackTurky · Dec 16, 2011 · Viewed 11.7k times · Source

i want to hide the status bar when i launch my app to view launch image that was covered by status bar. so in plist i added

Status bar is initially hidden YES

and status bar is covered. My problem is that status bar is covered always in my app, i want to hide status bar only for launch image, what can i do?

Answer

Niko picture Niko · Dec 16, 2011
[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];