IOS 启动图像大小
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16832459/
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
IOS launch image sizes
提问by dk123
The ios App Programming Guidestates the following launch image sizes for iPad apps:
该应用程序编程指南IOS指出下列启动图像尺寸iPad应用程序:
1024x748px and 2048x1496px
.
1024x748px and 2048x1496px
.
Yet in XCode, I am given the following sizes for ipad portrait launch images in the tooltip:
然而,在 XCode 中,我在工具提示中为 ipad 纵向启动图像提供了以下尺寸:
1024x768px and 2048x1536px
.
1024x768px and 2048x1536px
.
Which should I follow?
我应该遵循哪个?
note:
注意:
the ios human interface guidelinesstate:
在IOS人机界面指南状态:
For iPad launch images, do not include the status bar region
.
For iPad launch images, do not include the status bar region
.
I am confused as to which dimensions I should be following.
我很困惑我应该遵循哪些维度。
回答by Scott
The Launch image dimensions are indeed confusing, and require a lot of needless cross reference. In Xcode there is a page where the launch images are drag and drop yet inexplicably lack pix dimensions!!
Launch 图像尺寸确实令人困惑,并且需要大量不必要的交叉参考。在 Xcode 中有一个页面,其中启动图像是拖放的,但莫名其妙地缺少像素尺寸!!
Through trial and error, Owen Rubin came up with the following dimensions and I made an image for your reference. Please let me know if we've made any errors.
通过反复试验,Owen Rubin 得出了以下尺寸,我制作了一张图片供您参考。如果我们犯了任何错误,请告诉我。
回答by Soumen
回答by Yatko
iOS Launch Image Sizes - Xcode iPhone/iPad
iOS 启动图像大小 - Xcode iPhone/iPad
1x = 320 x 480
2x = 640 x 960
Retina 4 = 640 x 1136
Retina HD 5.5 = 1242 x 2208
Retina HD 4.7 = 750 x 1334
Retina HD 5.5 = 2208 x 1242 (landscape)
iPad 1x = 768 x 1024
iPad 2x = 1536 x 2048
iPad 1x = 1024 x 768 (landscape)
iPad 2x = 2048 x 1536 (landscape)
回答by Fracdroid
In XCode select the slot for an image with the 'attributes inspector' tab open on the right hand side panel, it will tell you the Expected Size.
在 XCode 中,在右侧面板上打开“属性检查器”选项卡为图像选择插槽,它会告诉您预期大小。
回答by Aleksander Azizi
user2339310's linkfrom iPhone Development 101is a great source regarding the iOS launch image size(s). They have made a nice mockup with the specs:
user2339310来自iPhone Development 101的链接是有关 iOS 启动图像大小的重要来源。他们用规格做了一个很好的模型:
However, Apple has made it quite clear what sizes the launch image(s) should be:
但是,Apple 已经非常清楚地说明了启动图像的大小:
Taken from Apple's original page: http://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
摘自 Apple 的原始页面:http: //developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
回答by pre
I think both are working and it depends on wether you want the statusbar shown during launch or not.
我认为两者都在工作,这取决于您是否希望在启动期间显示状态栏。
回答by Hima
If you are using Xcode 8.xthen Expected size will not be displayed in the attribute inspector. You can see following sizes for reference for Portraitmode:
如果您使用的是Xcode 8.x,则预期大小将不会显示在属性检查器中。您可以查看以下尺寸以供人像模式参考:
1X = 320 × 480
1X = 320 × 480
2X = 640 × 960
2X = 640 × 960
3X = 640 × 1136
3X = 640 × 1136
5.5 = 1242 × 2208
5.5 = 1242 × 2208
4.7 = 750 × 1334
4.7 = 750 × 1334
4 Ratina = 640 × 1136
4 拉蒂娜 = 640 × 1136
Here are the dimensions with latest devices from Apple Developer Website
以下是Apple 开发者网站上最新设备的尺寸
回答by rikiless
also mentioned in design resources for iOS7
在 iOS7 的设计资源中也提到
回答by Nishant Tyagi
If you are showing status bar then use first one (20 pixel less height) else use second one (full size).
如果您正在显示状态栏,则使用第一个(高度减少 20 像素),否则使用第二个(全尺寸)。