图像资产目录无法识别 xCode5 中的 Retina 4 照片 [英] Image Assets catalog doesnt recognise retina 4 photos in xCode5

查看:25
本文介绍了图像资产目录无法识别 xCode5 中的 Retina 4 照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开始我正在尝试做的事情我什至不确定这是可能的(看起来是)在 Xcode 中的图像资产功能中,您可以选择一个图像集是通用的还是设备特定的.当我执行特定于设备并选择 iphone 和 Retina 4 并将图片分配给所有人时,当我使用 iphone 5(设备或模拟器)时,它总是选择 iphone 视网膜图像而不是 Retina 4

For start what I am trying to do i am not even sure that is possible(looks that is) In the feature of image assets in Xcode you can select for an imageSet to be either Universal or Device Specific. When I am doing it Device Specific and select both iphone and Retina 4 and assign pics to all , it is always selected the iphone retina image and never the Retina 4 when I am using an iphone 5(device or simulator)

已搜索文档但找不到某些内容.谢谢

Have searched docs but couldnt find something. Thanks

推荐答案

R4"图像仅适用于运行 iOS 7 或更高版本的 4 英寸 iPhone.在较旧版本的 iOS 上,它将使用 2x 图像.

The "R4" image will only work on 4-inch iPhone running iOS 7 or later. On older version of iOS it will use 2x image.

示例.如果您使用这样的图像:

Example. If you use images like this:

你会看到:

  • iPhone 5 iOS >= 7 - 数字 3,
  • iPhone 5 iOS <7 - 数字 2,
  • iPhone 4、4S - 2 号,
  • iPhone 3GS - 第一,
  • iPhone 5C 和 5S - 3 号.

这篇关于图像资产目录无法识别 xCode5 中的 Retina 4 照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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