Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
图像不会在 Xcode 8.1 中的 UIImageView 或我们可以显示图像的任何控件中显示。我添加了@3x 组图像。请帮我解决这个问题。
使用 Xcode 8.2.1
我遇到了同样的问题。您需要为所有三种尺寸(1x、2x、3x)添加图像,因为尽管最终构建使用它可以找到的任何尺寸替代品,但当 Xcode 要求您选择一个时,情节提要需要您选择的设备的图像尺寸对于“显示为”。
如果您想对所有尺寸使用相同的图像,请在 Assets.xcassets 的所有三个尺寸容器中拖动相同的文件,示例如下。