Xcode 6.2图像资产中的iPhone 5模拟器从未使用过Retina 4 2x [英] Retina 4 2x is never used for iPhone 5 simulator in Xcode 6.2 image asset

查看:129
本文介绍了Xcode 6.2图像资产中的iPhone 5模拟器从未使用过Retina 4 2x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的一组图像(image0)中使用了设备专用",并具有3张2x,Retina 4 2x和3x图像.

I'm using Device Specific in one of my image sets (image0) and having 3 images for 2x, Retina 4 2x and 3x.

iPhone 6 Plus模拟器使用3x,iPhone 4/4s使用2x.

iPhone 6 Plus simulator uses the 3x and iPhone 4/4s uses the 2x.

问题是iPhone 5/5s模拟器从不使用Retina 4 2x(下面的屏幕截图中为绿色)

The problem is that iPhone 5/5s simulator never uses the Retina 4 2x (green one in the screen shot below)

这些是解决方法: 2倍:640 x 960 视网膜4 2x:640 x 1136 3x:1242 x 2208

These are the resolutions: 2x: 640 x 960 Retina 4 2x: 640 x 1136 3x: 1242 x 2208

EDIT1

我尝试按照下面的建议在IB中设置图像,但它仍然选择2x版本!

I tried as per the suggestion below to set the image in IB but it still selects the 2x version!

推荐答案

这是因为项目的部署目标设置为6.0. Retina 4图像不会在iOS 7之前的iPhone 5上使用.

It's because your project's deployment target is set to 6.0. Retina 4 images won't be used on iPhone 5 for iOS pre 7.0.

将部署目标更改为7.0或更高版本,并且在模拟器中运行时将使用正确的映像(即使未反映在IB中).

Change the deployment target to 7.0 or above and the correct image will be used when you run in the simulator (even if not reflected in IB).

这篇关于Xcode 6.2图像资产中的iPhone 5模拟器从未使用过Retina 4 2x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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