以20像素(y轴)发射图像 [英] Launch image off by 20 pixels (on y axis)

查看:53
本文介绍了以20像素(y轴)发射图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个320×480大小的启动图像,名为"Default.png",该应用程序配置为还显示状态栏.

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

启动我的应用程序时,状态栏会将图像的前20个像素切除并隐藏.

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

根据Apple的HIG,在纵向模式下列出的iPhone和iPod Touch尺寸为:320 x 480像素640 x 960像素(高分辨率)

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?

推荐答案

您应该在设计启动图像时假设状态栏将切除前20个像素.

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

或者,您可以在info.plist中将 UIStatusBarHidden 设置为 YES ,然后在应用程序启动时以 [UIApplication sharedApplication]方式显示状态栏.statusBarHidden = NO .

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.

这篇关于以20像素(y轴)发射图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆