简体   繁体   English

启动屏幕和图标尺寸问题以及ios 7和8中的混乱

[英]Launch screen and icon dimension issues and confusion in ios 7 and 8

After a lot of mess I am finally asking regarding the splash/launch screen confusion of iPhone and iPad. 经过一番混乱之后,我终于问到有关iPhone和iPad的启动/启动屏幕混乱的问题。 I visited many links but couldn't find an appropriate answer for that. 我访问了许多链接,但找不到合适的答案。 I want the dimensions of iPhone and iPhone launch screens. 我想要iPhone和iPhone启动屏幕的尺寸。 Currently what I did for for 目前我为

iPhone 苹果手机
Default-568h.png (320 x 568) 默认值568h.png(320 x 568)
Default-568h@2x.png (640 x 1136) 默认值568h@2x.png(640 x 1136)
Default@2x.png (640 x 960) 默认值@ 2x.png(640 x 960)

I used these three dimensions and they are working on all iPhones(from 4s to 6 plus). 我使用了这三个尺寸,它们可以在所有iPhone(从4s到6 plus)上使用。 But there is a launch xib now provided. 但是现在提供了启动xib。 So whether this xib will run for the ios 7 or not? 那么,该xib是否将在ios 7上运行?

Now if I use these two dimensions provided above for 4s, 5 and 5s, no doubt the 640 x 1136 is also applying in iphone 6 and 6 plus, but there may be some pixel blurring in launch of iphone 6 and 6 plus. 现在,如果我将上面提供的这两个尺寸用于4s,5和5s,那么毫无疑问640 x 1136也适用于iPhone 6和6 Plus,但是在iPhone 6和6 Plus的启动中可能会有一些像素模糊。 Can anyone provide a generic way for launch screen for all devices (4s to 6 plus) with ios 7 and 8 support too. 任何人都可以为支持ios 7和8的所有设备(4至6加)启动屏幕提供一种通用方法。

iPhone 6 and 6plus iPhone 6和6plus
6+ (1242x2208) 6+(1242x2208)
6 (750x1334) 6(750x1334)
Question :-I know these dimensions are used for iphone 6 and 6+ but what will be the name of .png for these two devices just like we used Default-568h@2x.png etc for other devices if in case we don't use launch xib. 问题 :-我知道这些尺寸用于iphone 6和6+,但是这两个设备的.png名称是什么,就像我们将Default-568h@2x.png等用于其他设备一样,如果万一我们不这样做的话使用启动Xib。

iPad iPad的
Default-Portrait~ipad.png (768 x 1024) 默认肖像〜ipad.png(768 x 1024)
Default-Portrait@2x~ipad.png (1536 x 2048) 默认肖像@ 2x〜ipad.png(1536 x 2048)

Similarly for landscape 同样对于风景
Default-Landscape~ipad.png (1024 x 768) 默认景观〜ipad.png(1024 x 768)
Default-Landscape@2x~ipad.png (2048 x 1536) 默认景观@ 2x〜ipad.png(2048 x 1536)

Question :-Is any other dimension is required with some other name? 问题 :-是否还需要其他名称?

ICONS ICONS
I used to to do entry in .plist with Icon Files and the dimensions are 我曾经用图标文件在.plist中进行输入,尺寸为
29 x 29 29 x 29
40 x 40 40 x 40
50 x 50 50 x 50
56 x 56 56 x 56
57 x 57 57 x 57
58 x 58 58 x 58
60 x 60 60 x 60
72 x 72 72 x 72
76 x 76 76 x 76
80 x 80 80 x 80
100 x 100 100 x 100
114 x 114 114 x 114
120 x 120 120 x 120
144 x 144 144 x 144
152 x 152 152 x 152
512 x 512 for iTunesArtwork.png iTunesArtwork.png的512 x 512
1024 x 1024 for iTunesArtwork@2x.png iTunesArtwork@2x.png的1024 x 1024

Question :- I listed almost all icon dimensions are but What will the the minimum number of icons that I need for all iphones (4s to 6 plus) and iPad? 问题 :-我列出了几乎所有图标尺寸,但是所有iphone(4s至6 plus)和iPad所需的最小图标数量是多少? How many icon dimensions can I disgard from the above list. 我可以从上面的列表中删除多少个图标尺寸。 Any help will be appreciated in clearing the confusion. 任何帮助将消除混乱中的赞赏。

Thanks 谢谢

Launch screen 启动画面

If you only support iOS 8.0+. 如果您仅支持iOS 8.0+。

You only need LaunchScreen.xib . 您只需要LaunchScreen.xib即可

Otherwise use Images.xcassets . 否则,使用Images.xcassets

You can enable it in "Target > General > App Icons and Launch Images" 您可以在“目标>常规>应用程序图标和启动图像”中启用它

Select LaunchImage in Images.xcassets. 在Images.xcassets中选择LaunchImage。

You can select support device and os in inspector. 您可以在检查器中选择支持设备和操作系统。

Then XCode will tell you how many images you need. 然后XCode会告诉您所需的图像数量。

You don't need to care image name just drag and drop it. 您无需关心图像名称,只需将其拖放即可。

在此处输入图片说明

Icons 图标

Use Images.xcassets . 使用Images.xcassets

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM