IOS发布图像 - 让我疯狂 [英] IOS launch images - driving me crazy

查看:275
本文介绍了IOS发布图像 - 让我疯狂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哪里可以找到完整列表告诉我应该使用的文件名(?)和图像文件大小:

Where can I find a complete list tells me what file name (?) and image file size I should use for:


  • retina高清5.5肖像ios 8,9

  • retinia hd 5.5 portrait ios 8,9

  • retinia hd 5.5 landscape ios 8,9

  • iphone portrait ios 2x 7-9

  • iphone portrait ios retina 4 7-9

  • ipad portrait ios 1x 7-9

  • ipad portrait ios 2x 7-9

  • ipad landscape ios 1x 7-9

  • ipad landscape ios 2x 7-9

  • retina hd 5.5 portrait ios 8,9
  • retinia hd 5.5 portrait ios 8,9
  • retinia hd 5.5 landscape ios 8,9
  • iphone portrait ios 2x 7-9
  • iphone portrait ios retina 4 7-9
  • ipad portrait ios 1x 7-9
  • ipad portrait ios 2x 7-9
  • ipad landscape ios 1x 7-9
  • ipad landscape ios 2x 7-9

由于我打算使用swift,我只能假设ios7 +这意味着我可以为ios5 +识别所有其他尺寸6,对吗?

As I intend to use swift I can only suppose ios7+ that means i can ognore all he oher sizes for ios5+6, right?

这会留下LaunchScreen.storyboard,这在某些情况下似乎是ios9的要求...简单地加载它的最佳方法是什么?显示正确的背景启动图像?

This leaves the LaunchScreen.storyboard which seems to be a requirement for ios9 in some cases... What is the best way to simply have it load/show the correct background launch image?

推荐答案

我使用的是LaunchImage集。单击文件列表中的Images.xcassets。在右侧的下一列中,您可能需要使用+按钮添加AppIcon和LaunchImages图像集。这些将为每个支持的(预期)屏幕大小提供插槽。如果您使用这些集合,则无需担心使用Apple的难以理解的命名方案加密图像文件,只需将每个图像文件拖动到集合中的相应插槽即可。

I use a LaunchImage set. Click Images.xcassets from the files list. In the next column to the right, you may need to use the "+" button to add AppIcon and LaunchImages image sets. These will have slots for every supported (expected) screen size. If you use these sets, you don't have to worry about encrypting your image files with Apple's indecipherable naming scheme, you just drag each image file to the corresponding slot in the set.

当然,仍然需要知道与1x,2x,retina4,Retina 4.7,Retina 5.5等相关的实际尺寸。我当然更喜欢Xcode只显示每个图像所需的尺寸,但它不会吨。除此之外,我喜欢Apple的一张表列出了所有预期的尺寸,但这似乎不存在,。谢天谢地,Apple似乎已经在图形部分下的https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen/ 。具体来说,在撰写IOS10支持的设备时:

Of course, one still has to know the actual dimensions associated with 1x, 2x, retina4, Retina 4.7, Retina 5.5, etc. I'd certainly prefer Xcode to just show the required dimensions of each image, but it doesn't. Barring that, I'd love a single table from Apple listing all the expected dimensions, but that doesn't seem to exist, either. It looks like Apple has, thankfully, consolidated all of this information in the https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen/ under the "Graphics" section. Specifically, as of this writing for devices supported on IOS10:

Device                          Portrait size       Landscape size
iPhone 6s Plus, iPhone 6 Plus   1080px by 1920px    1920px by 1080px
iPhone 6s, iPhone 6             750px by 1334px     1334px by 750px
iPhone SE                       640px by 1136px     1136px by 640px
12.9-inch iPad Pro              2048px by 2732px    2732px by 2048px
9.7-inch iPad Pro, iPad Air 2, 
     iPad mini 4, iPad mini 2   1536px by 2048px    2048px by 1536px

这篇关于IOS发布图像 - 让我疯狂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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