iOS 应用程序初始屏幕使用的尺寸是多少?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2634898/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What are the sizes used for the iOS application splash screen?
提问by a111
I am developing an application using the iOS SDK. I need to know what Default
splash screen sizes I need.
我正在使用 iOS SDK 开发应用程序。我需要知道我需要什么Default
启动画面尺寸。
回答by drekka
2018 Update - Please don't use this info !
2018 更新 - 请不要使用此信息!
I'm leaving the below post for reference purposes.
我将留下以下帖子以供参考。
Please read Apple's documentation Human Interface Guidelines - Launch Screensfor details on launch screens and recommendations.
请阅读 Apple 的文档Human Interface Guidelines - Launch Screens,了解有关启动屏幕和建议的详细信息。
Thanks
Drekka
由于
Drekka
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.
2012 年 7 月 - 由于此回复相当陈旧,但剧照似乎很受欢迎。我写了一篇基于 Apple 的 doco 的博客文章并将其放在我的博客上。我希望你们觉得它有用。
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 infofrom the phunkwerkssite:
是的。在 iPhone/iPad 开发中,Default.png
文件由设备自动显示,因此您不必对其进行编程,这非常有用。我没有,但您需要为 iPad 提供具有特定名称的不同 PNG。我用谷歌搜索iPad default png
并从phunkwerks网站获得了这些信息:
iPad Launch Image Orientations
iPad 启动图像方向
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.
为了处理各种方向选项,为 iPad 启动图像创建了一个新的命名约定。iPad 的屏幕尺寸为 768×1024,注意在跟随高度的尺寸中考虑了 20 像素的状态栏。
Filename Dimensions
文件名尺寸
Default-Portrait.png
* — 768w x 1024hDefault-PortraitUpsideDown.png
— 768w x 1024hDefault-Landscape.png
** — 1024w x 748hDefault-LandscapeLeft.png
— 1024w x 748hDefault-LandscapeRight.png
— 1024w x 748hiPad-Retina–Portrait.png
— 1536w x 2048hiPad-Retina–Landscape.png
— 2048w x 1496hDefault.png
— Not recommended
Default-Portrait.png
* — 768 宽 x 1024 小时Default-PortraitUpsideDown.png
— 768 宽 x 1024 小时Default-Landscape.png
** — 1024 宽 x 748 小时Default-LandscapeLeft.png
— 1024 宽 x 748 小时Default-LandscapeRight.png
— 1024 宽 x 748 小时iPad-Retina–Portrait.png
— 1536 宽 x 2048 小时iPad-Retina–Landscape.png
— 2048 宽 x 1496 小时Default.png
- 不建议
*—If you have not specified a Default-PortraitUpsideDown.png
file, this file will take precedence.
*—如果您没有指定Default-PortraitUpsideDown.png
文件,则该文件优先。
**—If you have not specified a Default-LandscapeLeft.png
or Default-LandscapeRight.png
image file, this file will take precedence.
**—如果您没有指定一个Default-LandscapeLeft.png
或Default-LandscapeRight.png
图像文件,这个文件将优先。
This link to "Apple's Developer Library"is useful, too.
这个指向“Apple 的开发者库”的链接也很有用。
回答by Andrew Johnson
As of July 2013 (iOS 6), this is what we always use:
截至 2013 年 7 月(iOS 6),这是我们一直使用的:
IPHONE SPLASH
Default.png - 320 x 480
[email protected] - 640 x 960
[email protected] - 640 x 1096 (with status bar)
[email protected] - 640 x 1136 (without status bar)
IPAD SPLASH
iPadImage-Appname-Portrait.png * 768w x 1004h (with status bar)
[email protected] * 1536w x 2008h (with status bar)
iPadImage-Appname-Landscape.png ** 1024w x 748h (with status bar)
[email protected] ** 2048w x 1496h (with status bar)
iPadImage-Appname-Portrait.png * 768w x 1024h (without status bar)
[email protected] * 1536w x 2048h (without status bar)
iPadImage-Appname-Landscape.png ** 1024w x 768h (without status bar)
[email protected] ** 2048w x 1536h (without status bar)
ICON
Appname-29.png
[email protected]
Appname-50.png
[email protected]
Appname-57.png
[email protected]
Appname-72.png
[email protected]
iTunesArtwork (512px x 512px)
iTunesArtwork@2x (1024px x 1024px)
回答by igo
For iOS7 create launch images in the following sizes:
对于 iOS7,创建以下尺寸的启动图像:
For iPhone 5 and iPod touch (5th generation):
对于 iPhone 5 和 iPod touch(第 5 代):
- 640 x 1136 pixels
- 640 x 1136 像素
For other iPhone and iPod touch devices:
对于其他 iPhone 和 iPod touch 设备:
- 640 x 960 pixels
- 320 x 480 pixels (standard resolution)
- 640 x 960 像素
- 320 x 480 像素(标准分辨率)
For iPad portrait:
对于 iPad 纵向:
- 1536 x 2048 pixels
- 768 x 1024 pixels (standard resolution)
- 1536 x 2048 像素
- 768 x 1024 像素(标准分辨率)
For iPad landscape:
对于 iPad 横向:
- 2048 x 1536 pixels
- 1024 x 768 pixels (standard resolution)
- 2048 x 1536 像素
- 1024 x 768 像素(标准分辨率)
See iOS 7 Design Resources > iOS Human Interface Guidelines > Launch Images
请参阅iOS 7 设计资源 > iOS 人机界面指南 > 启动图像
UPDATE 1
更新 1
For iPhone 6:
对于 iPhone 6:
- 750 x 1334 (@2x) for portrait
- 1334 x 750 (@2x) for landscape
- 纵向 750 x 1334 (@2x)
- 1334 x 750 (@2x) 横向
For iPhone 6 Plus:
对于 iPhone 6 Plus:
- 1242 x 2208 (@3x) for portrait
- 2208 x 1242 (@3x) for landscape
- 纵向 1242 x 2208 (@3x)
- 2208 x 1242 (@3x) 横向
UPDATE 2
更新 2
For iPhone X:
对于 iPhone X:
- 1125 x 2436 (@3x) for portrait
- 2436 x 1125 (@3x) for landscape
- 纵向 1125 x 2436 (@3x)
- 2436 x 1125 (@3x) 横向
回答by RanLearns
You can make them 1024 x 768. You can also check "Status bar is initially hidden" in the plist file.
您可以将它们设为 1024 x 768。您还可以在 plist 文件中检查“状态栏最初是隐藏的”。
回答by Essam Mohamed Fahmi
Update 2019 - iOS 12
2019 年更新 - iOS 12
I have collected all sizes needed for splash screen. All u need is to just drag images with these sizes and drop them, XCode will place each size in the right place.
我已经收集了启动画面所需的所有尺寸。您只需要拖动具有这些尺寸的图像并将其放下,XCode 会将每个尺寸放置在正确的位置。
Good luck.
祝你好运。
Sizes :
尺寸:
320×480
320×480
640×960
640×960
640×1136
640×1136
750×1334
750×1334
768×1004
768×1004
768×1024
768×1024
828×1792
828×1792
1024×748
1024×748
1024×768
1024×768
1125×2436
1125×2436
1242×2208
1242×2208
1242×2688
1242×2688
1536×2008
1536×2008
1536×2048
1536×2048
1792×828
1792×828
2048×1496
2048×1496
2048×1536
2048×1536
2208×1242
2208×1242
2436×1125
2436×1125
2688×1242
2688×1242
Note
Count of required images are 26 images but there are 6 duplicated sizes so u will find the above sizes are only 20.
笔记
所需图像的数量是 26 张图像,但有 6 个重复尺寸,因此您会发现上述尺寸只有 20 个。
回答by Ghulam Rasool
For Xcode 9 and latest devices
适用于 Xcode 9 和最新设备
Portrait
肖像
iPhone 4/4S 640 x 960
iPhone 4/4S 640 x 960
iPhone 5/5C/5S iPod touch 5th generation 640 x 1136
iPhone 5/5C/5S iPod touch 第 5 代640 x 1136
iPhone 6/7/8 750 x 1334
iPhone 6/7/8 7 50 x 1334
iPhone 6/7/8 Plus 1242 x 2208
iPhone 6/7/8 Plus 1242 x 2208
iPhone X 1125 x 2436
iPhone X 1125 x 2436
iPad non-retina 768 x 1024
iPad 非视网膜768 x 1024
iPad retina 1536 x 2048
iPad 视网膜1536 x 2048
Landscape
风景
iPhone 6, 7 and 8 plus 2208 x 1242
iPhone 6、7 和 8 加2208 x 1242
iPhone X 2436 x 1125
iPhone X 2436 x 1125
iPad non-retina 1024 x 768
iPad 非视网膜1024 x 768
iPad retina 2048 x 1536
iPad 视网膜2048 x 1536
回答by imti
Here I can add Resolutions and Display Specifications for iphone 6 & 6+ size:
在这里,我可以为 iphone 6 和 6+ 尺寸添加分辨率和显示规格:
iPhone 6+ - Asset Resolution (@3x) - Resolution (2208 x 1242)px
iPhone 6+ - 资产分辨率 (@3x) - 分辨率 (2208 x 1242)px
iPhone 6 - Asset Resolution (@2x) - Resolution (1334 x 750)px
iPhone 6 - 资产分辨率 (@2x) - 分辨率 (1334 x 750)px
iPad Air / Retina iPad (1st & 2nd Generation / 3rd & 4th) - Asset Resolution (@2x) - Resolution (2048 x 1536)px
iPad Air / Retina iPad(第 1 代和第 2 代 / 第 3 代和第 4 代) - 资产分辨率 (@2x) - 分辨率 (2048 x 1536)px
iPad Mini (2nd & 3rd Generation) - Asset Resolution (@2x) - Resolution (2048 x 1536)px
iPad Mini(第 2 代和第 3 代) - 资产分辨率 (@2x) - 分辨率 (2048 x 1536)px
iPhone (6, 5S, 5, 5C, 4S, 4) - App Icon (120x120 px) - AppStore Icon (1024x1024 px) - Spotlight (80x80 px) - Settings (58x58 px)
iPhone (6, 5S, 5, 5C, 4S, 4) - 应用程序图标 (120x120 px) - AppStore 图标 (1024x1024 px) - Spotlight (80x80 px) - 设置 (58x58 px)
iPhone (6+) - App Icon (180x180 px) - AppStore Icon (1024x1024 px) - Spotlight (120x120 px) - Settings (87x87 px)
iPhone (6+) - 应用程序图标 (180x180 px) - AppStore 图标 (1024x1024 px) - Spotlight (120x120 px) - 设置 (87x87 px)
回答by Andrew Johnson
With iOS 7+, static Launch Images are now deprecated.
在 iOS 7+ 中,静态启动图像现已弃用。
You should create a custom view that composes slices of images, which sizes to all screens like a normal UIViewController view.
您应该创建一个由图像切片组成的自定义视图,该视图的大小适合所有屏幕,就像普通的 UIViewController 视图一样。
回答by LDanberger
With universal app I had iPad splash screen showing up in simulator but not on device. The iPad would instead show the Default.png splash for the iPhone. The Default-Landscape.png and Default-Portrait.png files existing, so wth? Resolution should be correct since I created the screen captures using Window | Organizer | Screenshots and used 'Save as Default Image' for the iPad, then just renamed it.
使用通用应用程序时,我让 iPad 启动画面显示在模拟器中,但不在设备上。iPad 将改为显示 iPhone 的 Default.png 启动画面。Default-Landscape.png 和 Default-Portrait.png 文件已经存在,那么呢?分辨率应该是正确的,因为我使用的是Window创建的屏幕捕获| 主办方| 屏幕截图并为 iPad 使用“另存为默认图像”,然后将其重命名。
Turns out (from my one app anyways) the two iPad screen shots have to be moved to the Resources-iPad directory. Then it all works fine. Seems obvious now, but in case anyone else has lost sleep over this... -Larry
结果(无论如何来自我的一个应用程序)两个 iPad 屏幕截图必须移动到 Resources-iPad 目录。然后一切正常。现在看起来很明显,但万一其他人为此失眠了...... -Larry
回答by Matt Cardoza
For Adobe AIR iOS Developers, take note that if your iPad Splash images "shift" or display and scale a second later, it's because there are different dimensions depending on what version of AIR you're using.
对于 Adobe AIR iOS 开发人员,请注意,如果您的 iPad Splash 图像在一秒钟后“移动”或显示和缩放,那是因为根据您使用的 AIR 版本不同,尺寸会有所不同。
Default-Portrait.png:
768 x 1004 (AIR 3.3 and earlier)
768 x 1024 (AIR 3.4 and higher)
Default-Portrait.png:
768 x 1004(AIR 3.3 及更早版本)
768 x 1024(AIR 3.4 及更高版本)
[email protected]:
1536 x 2008 (AIR 3.3 and earlier)
1536 x 2048 (AIR 3.4 and higher)
[email protected]:
1536 x 2008(AIR 3.3 及更早版本)
1536 x 2048(AIR 3.4 及更高版本)
参考:http:
//help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d129907d2886-8000.html#WS901d38e593cd1bac58d08f9112e26606ea8-8000