iOS 应用程序初始屏幕使用的尺寸是多少? [英] What are the sizes used for the iOS application splash screen?

查看:31
本文介绍了iOS 应用程序初始屏幕使用的尺寸是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 iOS SDK 开发应用程序.我需要知道我需要什么 Default 启动画面尺寸.

I am developing an application using the iOS SDK. I need to know what Default splash screen sizes I need.

推荐答案

2018 更新 - 请不要使用此信息!

我将留下以下帖子以供参考.

请阅读 Apple 的文档人机界面指南- 启动屏幕,了解有关启动屏幕和建议的详细信息.

Please read Apple's documentation Human Interface Guidelines - Launch Screens for details on launch screens and recommendations.

谢谢
德雷卡

2012 年 7 月 - 由于此回复相当陈旧,但剧照似乎很受欢迎.我写了一篇基于 Apple 的 doco 和 把它放在我的博客上.我希望你们觉得它有用.

July 2012 - As this reply is rather old, but stills seems popular. I've written a blog post based on Apple's doco and placed it on my blog. I hope you guys find it useful.

是的.在 iPhone/iPad 开发中,Default.png 文件由设备自动显示,因此您不必对其进行编程,这非常有用.我没有,但您需要为 iPad 提供具有特定名称的不同 PNG.我用谷歌搜索了 iPad 默认 png 并得到了 这个来自 phunkwerks 网站的信息:

Yes. In iPhone/iPad development the Default.png file is displayed by the device automatically so you don't have to program it which is really useful. I don't have it with me, but you need different PNGs for the iPad with specific names. I googled iPad default png and got this info from the phunkwerks site:

为了处理各种方向选项,为 iPad 启动图像创建了一个新的命名约定.iPad 的屏幕尺寸为 768×1024,注意在跟随高度的尺寸中考虑了 20 像素的状态栏.

To deal with various orientation options, a new naming convention has been created for iPad launch images. The screen size of the iPad is 768×1024, notice in the dimensions that follow the height takes into account a 20 pixel status bar.

  • Default-Portrait.png * — 768w x 1024h
  • Default-PortraitUpsideDown.png — 768w x 1024h
  • Default-Landscape.png ** — 1024w x 748h
  • Default-LandscapeLeft.png — 1024w x 748h
  • Default-LandscapeRight.png — 1024w x 748h
  • iPad-Retina–Portrait.png — 1536w x 2048h
  • iPad-Retina–Landscape.png — 2048w x 1496h
  • Default.png — 不推荐
  • Default-Portrait.png * — 768w x 1024h
  • Default-PortraitUpsideDown.png — 768w x 1024h
  • Default-Landscape.png ** — 1024w x 748h
  • Default-LandscapeLeft.png — 1024w x 748h
  • Default-LandscapeRight.png — 1024w x 748h
  • iPad-Retina–Portrait.png — 1536w x 2048h
  • iPad-Retina–Landscape.png — 2048w x 1496h
  • Default.png — Not recommended

*——如果你没有指定一个 Default-PortraitUpsideDown.png 文件,这个文件将优先.

*—If you have not specified a Default-PortraitUpsideDown.png file, this file will take precedence.

**—如果您未指定 Default-LandscapeLeft.pngDefault-LandscapeRight.png 图像文件,则此文件优先.

**—If you have not specified a Default-LandscapeLeft.png or Default-LandscapeRight.png image file, this file will take precedence.

此Apple 开发人员库"链接 也很有用.

这篇关于iOS 应用程序初始屏幕使用的尺寸是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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