简体   繁体   中英

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). This would be a simple question: since all those devices have retina display, should I suffix image files with @2x ? Even if no standard resolution of such images will be needed?

Thanks

如果该应用程序旨在用于iPhone5 / 5S / 5C,那么我认为没有必要检测“大小”,因为它们都是相同的大小,但是如果您要制作的应用程序可以在具有以下功能的设备上使用diff大小,然后在2x图像的图像文件名末尾附加“ @ 2x”,并在开发时使用不带.png扩展名的图像名称... API会自动设置适当的图像。不需要检测尺寸等。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM