I have two files for the Launch image for my iPhone app.
- Launch.jpg: 320x480
- Launch@2x.jpg: 640x960
In my .plist, I have the following key-pairs (amongst others):
- Launch image (iPhone) = Launch.jpg
- Status bar is initially hidden = NO 开发者_JS百科
However, when my app first launches, the top 20 pixels or so of the Launch image are blocked because of the status bar. How can I tell my Launch image to start below the status bar upon launch?
If you need the status bar to be present on the launch screen, your best option is to modify the launch images themselves to make room for the status bar. As the top 20 pixels is being cut off by the bar, simply modifying your Launch.jpg
to have the top 20 pixels blanked-out will do the trick.
If you don't need the status bar on the launch screen but want it on the application, set it to hidden in your Info.plist
and have your application do:
[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];
once it finishes launching.
You need to set the Status bar is initially hidden to YES to hide the status bar while the splash image is shown.
精彩评论