[英]Image files for iPhone 5/5C/5S
I have some png
image files in my project's Supporting Files
directory that are intended to be shown only in iPhone 5 and later devices (I detect screen size programmatically to set the proper image). 我的项目的
Supporting Files
目录中有一些png
图像文件,这些Supporting Files
只能在iPhone 5和更高版本的设备中显示(我通过编程方式检测屏幕尺寸来设置适当的图像)。 This would be a simple question: since all those devices have retina display, should I suffix image files with @2x
? 这将是一个简单的问题:由于所有这些设备都具有视网膜显示功能,我应该在图像文件后缀
@2x
吗? Even if no standard resolution of such images will be needed? 即使不需要这种图像的标准分辨率?
Thanks 谢谢
如果该应用程序旨在用于iPhone5 / 5S / 5C,那么我认为没有必要检测“大小”,因为它们都是相同的大小,但是如果您要制作的应用程序可以在具有以下功能的设备上使用diff大小,然后在2x图像的图像文件名末尾附加“ @ 2x”,并在开发时使用不带.png扩展名的图像名称... API会自动设置适当的图像。不需要检测尺寸等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.