不包括iPhone项目中的非视网膜显示图像 [英] Not including non-retina display images in an iPhone project

查看:115
本文介绍了不包括iPhone项目中的非视网膜显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iPhone Xcode项目,目前只包含视网膜显示的图像(正常尺寸的两倍,后缀为@ 2x.png)。当我在iPhone模拟器(非视网膜)上运行应用程序时,图像仍在显示。这是否意味着我不需要担心包括两组图像:视网膜和非视网膜?

I have an iPhone Xcode project that currently only contains images for retina display (twice the size as normal and with a @2x.png suffix). When I run the app on the iPhone Simulator (non retina) the images are still being displayed. Does this mean I don't need to worry about including two sets of images: retina and non-retina?

这一切看起来有点奇怪。如果没有包含非2x文件,我会假设没有图像出现在非视网膜设备上。

This all seems a bit odd. I would assume that no images would appear on a non retina device if there are no non-@2x files included.

注意:我没有测试我的应用程序是非视网膜设备。只是模拟器。

Note: I have not tested my app on a non retina device. Just the simulator.

推荐答案

即使它有效,但这不是一个好习惯,如果你有一个媒体沉重的应用肯定会影响性能和电池生活和记忆足迹和....

Even if it works, it's not good practice, and if you have a media heavy app definitely it would impact performance and battery life and memory foot print and ....

顺便说一句,是不是你没有1x图形,或者你担心你的应用程序(下载大小)或...

By the way, is it just that you don't have the 1x graphics available to you or you are concerned about your apps (download size) or ...

这篇关于不包括iPhone项目中的非视网膜显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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