Launch image off by 20 pixels (on y axis)

I have a 320×480 sized launch image named 'Default.png' and the app is configured to also display how the status bar.

When my app launches, the image's top 20 pixels are cut off and hidden by the status bar.

According to Apple's HIG, the listed dimensions for iPhone and iPod Touch in Portrait mode are are: 320 x 480 pixels 640 x 960 pixels (high resolution)

How do I make it shift so the image is shown correctly, below the status bar?


You should just design your launch image with the assumption that the top 20 pixels will be cut off by the status bar.

Alternatively, you could set UIStatusBarHidden to YES in your info.plist, then when the app launches programmatically show the status bar with [UIApplication sharedApplication].statusBarHidden = NO .


With the status bar, the usable screen space is 320x460 (640x920) I would guess the top is being cut off as your autoresizing mask / anchor points for your view are locked to the bottom of the screen. You can check this in interface builder inspector under the size tab. You have 3 options:

  • Set the anchor points to top of the screen, which will force the view/image downwards and cut off the bottom rather than the top
  • Set the image to stretch/fit the view, although this may look bad
  • Use a separate image depending on whether the statusbar is shown or not.
  • 链接地址: http://www.djcxy.com/p/42682.html

    上一篇: Default.png显示在状态栏区域的下方,想要将其全屏显示

    下一篇: 将图像关闭20个像素(在y轴上)