iPhone application
I have two files for the Launch image for my iPhone app.
In my .plist, I have the following key-pairs (amongst others):
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.
您需要将状态栏最初隐藏到YES才能在显示启动图像时隐藏状态栏。
链接地址: http://www.djcxy.com/p/42686.html下一篇: iPhone应用程序