为什么在启动我的应用程序时看到双重状态栏? [英] Why do I see double status bars when starting my app?

查看:61
本文介绍了为什么在启动我的应用程序时看到双重状态栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动我的iPhone应用程序时,我同时看到Default.png的状态栏和操作系统的内置状态栏,而不仅仅是看到操作系统的状态栏.我做错了什么?

When starting my iPhone application, I'm seeing both the status bar from Default.png and the OS's built-in status bar, instead of just seeing the OS's status bar. What have I done wrong?

推荐答案

将Default.png的大小精确调整为320x480.

Resize your Default.png to exactly 320x480.

如果您的Default.png恰好是320x480,它将全屏显示在状态栏下方(按z顺序).(这意味着用户将看到真实的状态栏,而不是Default.png.)

If your Default.png is exactly 320x480, it will be displayed full screen layered below (in z-order) the status bar. (This means the user will see the real status bar, not the Default.png one.)

但是,如果您的Default.png为其他尺寸,iPhone操作系统将对其进行缩放并显示在位于操作系统状态栏下的位置.(这意味着用户将看到完整尺寸的真实状态栏,而Default.png则按比例缩放.)

But if your Default.png is some other size, the iPhone OS will scale it and display it positioned under the OS's status bar. (This means the user will see the real status bar at full size, and the Default.png one scaled.)

注意:Apple的文档特别指出了320x480的尺寸,但没有说明它可以与其他图像尺寸一起使用,更不用说这种缩放行为了.因此,您可能不应该依赖于此.

Note: Apple's documentation specifically states the 320x480 size, leaving undocumented that it works at all with other image sizes, let alone this scaling behavior. So you probably shouldn't rely on this.

这篇关于为什么在启动我的应用程序时看到双重状态栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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