如何创建启动图像或如何获得空状态栏

发布于 2024-09-27 18:32:09 字数 1062 浏览 0 评论 0原文

我想为我的应用程序创建启动图像。 HIG 指出:

对于 iPhone 和 iPod touch,创建包含以下尺寸的状态栏区域的启动图像:

  • 320 x 480 像素
  • 640 x 960 像素(高分辨率)

我尝试过 在 iPhone 模拟器中对我的应用程序进行屏幕截图。但这里的状态栏在屏幕上,包括信号强度、运营商、时间和电池寿命。所以有两种可能性:

  • 包含带有错误信息的状态栏
  • 为自己清理状态栏(使用 Photoshop 或类似的东西,然后我必须注意渐变...)
  • 忽略状态栏,但随后违反了 HIG(因为图像尺寸为 320x460 和 640x920)

有没有办法隐藏 iPhone 模拟器状态栏中的信息?我是否应该像此处所述省略状态栏?

解决方案:

看来这三个答案都是正确的。以下是解决方案:

  1. 提供尺寸为 320x480 / 640x960 的图像,带或不带清除的状态栏

  2. 裁剪图像(不带状态栏)。图像的尺寸为 320x460 和 640x920。

为了符合 HIG,我将选择选项 no。 1

I want to create a launch image for my app. The HIG states:

For iPhone and iPod touch create launch images that include the status bar region in the following sizes:

  • 320 x 480 pixels
  • 640 x 960 pixels (high resolution)

I've tried to screenshot my app within the iPhone Simulator. But here the status bar is on the screen including signal strength, carrier, time and battery life. So there are two possibilities:

  • include status bar with wrong information
  • clean status bar for myself (use Photoshop or something like this and then I have to be aware of the gradients ...)
  • leave out status bar, but then violating the HIG (because images are of size 320x460 and 640x920)

Is there a way to hide the informations in the status bar in iPhone Simulator? Should I leave out the status bar as talked here?

Solution:

It seems that all three answers are right. Here are the solutions:

  1. Supply images of size 320x480 / 640x960 with or without cleared status bar

  2. Crop images (without status bar). Images have the size 320x460 and 640x920 then.

To be conform to the HIG I'll choose option no. 1

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

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

发布评论

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

评论(4

恋你朝朝暮暮 2024-10-04 18:32:09

提供尺寸为 320x460 的图像是完全可以的。 iPhone 将显示状态栏和下方的图像。我在 AppStore 中有一个带有这样图像的应用程序,并且在审核过程中从未遇到任何问题。

如果您提供尺寸为 320x480 的图像,状态栏将覆盖它。

It is perfectly fine to supply an image sized 320x460. The iPhone will display the status bar and your image underneath. I have an application in the AppStore with such an image and never ran into any problems with the review process.

If you supply an image sized 320x480, the status bar will overlay it.

伤感在游骋 2024-10-04 18:32:09

你有尝试过什么都不做吗?从外观来看,我认为正确的工具栏将覆盖在图像的顶部。

Have you tried it without doing anything? I think the correct toolbar will be overlaid on top of the image, from the looks of things.

聚集的泪 2024-10-04 18:32:09

我只是使用了 Photoshop,选择了状态栏中最左边的像素(以获取渐变)并将其放大到右侧以覆盖所有文本/图标 - 这意味着我的状态栏渐变上没有不正确的内容。

看起来似乎还不错。

I just used photoshop, selected the left most pixels in the status bbar (to get the gradient) and enlarged it to the right to cover all of the text / icons - this meant I had the status bar's gradient with no incorrect stuff on it.

It seemed to look OK.

悲念泪 2024-10-04 18:32:09

为了获得完美的屏幕截图,如果您愿意,可以在手机上运行以下功能:

    if (Camera.isSupported)
{
    if (CameraRoll.supportsAddBitmapData)
    {

        var cameraRoll:CameraRoll = new CameraRoll();
        var bitmapData:BitmapData = new BitmapData(deviceWidth,deviceHeight);
        bitmapData.draw(stage);
        cameraRoll.addBitmapData(bitmapData);
    }
}

For the perfect screenshot you can run the following function on your phone if you wish:

    if (Camera.isSupported)
{
    if (CameraRoll.supportsAddBitmapData)
    {

        var cameraRoll:CameraRoll = new CameraRoll();
        var bitmapData:BitmapData = new BitmapData(deviceWidth,deviceHeight);
        bitmapData.draw(stage);
        cameraRoll.addBitmapData(bitmapData);
    }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文