为什么启动应用程序时会看到双状态栏?

发布于 2024-08-12 09:48:39 字数 84 浏览 1 评论 0原文

当启动我的 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽心 2024-08-19 09:48:39

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

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

但是,如果您的 Default.png 是其他尺寸,iPhone 操作系统将缩放它并显示它位于操作系统的状态栏。 (这意味着用户将看到全尺寸的真实状态栏,以及缩放后的 Default.png。)

注意:Apple 的文档明确说明了 320x480 尺寸,但未记录它与其他尺寸完全兼容的情况。图像尺寸,更不用说这种缩放行为了。所以你可能不应该依赖这个。

Resize your Default.png to exactly 320x480.

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.)

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.)

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文