我正在寻找在 Xcode 7 中设置图像 Assets 的最佳解决方案,我在 google 上搜索并发现许多线程正在讨论图像 Assets 的设置。 下面是我发现的
- 1x 图片适用于通过 3GS 的原始 iPhone -“标准” 分辨率设备(3.5"屏幕)
- 2x 图片适用于 iPhone 4 和 4S(3.5 英寸 Retina 屏幕)
也用于 iPhone 6。 - Retina 4 2x 适用于 iPhone 5 和 5s(4"Retina 屏幕)
- 3x 图片适用于新款 iPhone 6+(5.5 英寸超视网膜 [3x] 屏幕)
但是没有更多的 Retina-4 选项所以我很困惑如何在下面的附图中准确设置。
1x:用于非视网膜
2x:用于视网膜(这里混淆了 iPhone 4 Retina、5 Retina 或 6)
3x:适用于 6 加。
如果我错了请纠正我。寻求澄清。 谢谢
最佳答案
您将在此链接上从上到下获得有关 Assets 的所有信息。
根据您的问题,您可以在此链接 iosdesign-guidelines 上找到详细信息。
Developers work with point values, so it is important to understand the difference with pixels. When the iPhone was first introduced, the two units were the same: 1pt equals 1px. Then when retina screens came along, 1pt became 2px. So think of points as the values in the original iPhone, and pixels as the real values depending on the pixel density (iPhone 4,5,6 = @2x, iPhone 6 Plus = @3x).
在此处查看解决方案 ultimate-guide-to-iphone-resolutions
关于ios - 在 Xcode 7 中为所有 iPhone 设备准确设置 Assets ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35716168/