ios - 在 Xcode 7 中为所有 iPhone 设备准确设置 Assets

标签 ios objective-c iphone xcode7 uiimageasset

我正在寻找在 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] 屏幕)

如附图所示。 Facebook Image

但是没有更多的 Retina-4 选项所以我很困惑如何在下面的附图中准确设置。 Xcode 7 Image Assets

1x:用于非视网膜

2x:用于视网膜(这里混淆了 iPhone 4 Retina、5 Retina 或 6)

3x:适用于 6 加。

如果我错了请纠正我。寻求澄清。 谢谢

最佳答案

您将在此链接上从上到下获得有关 Assets 的所有信息。

About Asset Catalogs

根据您的问题,您可以在此链接 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

enter image description here enter image description here

关于ios - 在 Xcode 7 中为所有 iPhone 设备准确设置 Assets ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35716168/

相关文章:

ios - 如何保持 tableview 部分处于状态?

ios - 如何将变量传递给触发 UIButton 时调用的方法?

ios - Twitpic 说我的 OAuth 数据被推特拒绝了

ios - NSManagedObject 编号比较失败

ios - 呈现 UIAlertController (以操作表样式)导致神秘的自动布局警告

objective-c - iPad 上的 UIActionSheet 未显示取消按钮

iphone - 设置iphone View Controller 的 View

iphone - 如何在 iPhone 上使用 Swift 数据类型 Float80

iphone - 如何计算 Objective-C 中今年的天数

iphone - 在 iPhone 上自定义 NSLog 函数