如果iPad图像不存在,则不会加载Retina图像(@ 2x~ipad)(~ipad) [英] Retina images (@2x~ipad) not loaded if iPad image doesn't exist (~ipad)

查看:133
本文介绍了如果iPad图像不存在,则不会加载Retina图像(@ 2x~ipad)(~ipad)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一些奇怪的东西。

I have something strange in my app.

如果在资源中我有两个名为的文件: myFile~ipad.png myFile@2x~ipad.png 视网膜图像加载到iPad视网膜上应该是这样。
但如果我有两个名为 myFile.png myFile@2x~ipad.png 的文件,则从不加载视网膜图像并 myFiles.png 用于所有设备。

If in the ressources I have 2 files named : myFile~ipad.png and myFile@2x~ipad.png the retina image is loaded on iPad retina as it should be. But If i have two files named myFile.png and myFile@2x~ipad.png, the retina images is never loaded and myFiles.png is used for all devices.

这是正常的吗?问题是我想为iPhone,iPhone视网膜和iPad使用图像 myFile.png ,为iPad视网膜使用图像 myFile@2x~ipad.png ,这样我就可以不要把扩展名~ipad放在myFile.png之外。

Is this normal ? The problem is that I want to use the image myFile.png for iPhone, iPhone retina and iPad and the image myFile@2x~ipad.png for iPad retina so I can't put the extension ~ipad beyond myFile.png.

推荐答案

使用符号链接。我只是google它,并没有说它无法完成,但大多数都指向SD卡中的符号链接。

Use symlink. I just google it, and didn't say it couldn't be done, but most of it points to symlink in an SD card.

这篇关于如果iPad图像不存在,则不会加载Retina图像(@ 2x~ipad)(~ipad)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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