【发布时间】:2015-01-06 11:21:22
【问题描述】:
我设计了一个通用应用程序,我想为所有 iDevice 设置图像,包括 1x、2x、Retina 4 2x、3x?我应该怎么做?以及如何设置横向和纵向。提前感谢
【问题讨论】:
标签: ios objective-c xcode swift
我设计了一个通用应用程序,我想为所有 iDevice 设置图像,包括 1x、2x、Retina 4 2x、3x?我应该怎么做?以及如何设置横向和纵向。提前感谢
【问题讨论】:
标签: ios objective-c xcode swift
此命名约定将允许您为每个设备获取正确的图像:
image@2x iPhone 4/4s
image-568h@2x iPhone 5/5s
image-667h@2x iPhone 6
image-736h@3x iPhone 6+
本文提供了一些解释:http://www.reigndesign.com/blog/preparing-for-the-new-iphone-6-and-iphone-6-plus-screen-sizes/
就每个方向/方向变化改变图像而言,这篇文章似乎很好地解释了必要的调用。
Alternative iOS layouts for portrait and landscape using just one .xib file
【讨论】: