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

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

问题描述

为了开始我想要做的事情,我甚至不确定是否可行(看起来是这样)
在Xcode中的图像资源的功能中,您可以选择将图像集设置为通用或特定于设备。当我做它的设备特定并选择iphone和Retina 4并为所有人分配图片时,它总是选择iphone视网膜图像,当我使用iphone 5(设备或模拟器)时从不选择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 - 数字1,

  • iPhone 5C和5S - 3号。

  • iPhone 5 iOS >= 7 - number 3,
  • iPhone 5 iOS < 7 - number 2,
  • iPhone 4, 4S - number 2,
  • iPhone 3GS - number 1,
  • iPhone 5C and 5S - number 3.

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

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