简体   繁体   English

如何在iPhone 4,4s和iPhone 5,5c,5s中处理图形

[英]How to handle graphics in iPhone 4,4s and iPhone 5,5c,5s

So early when working with iPhone Retina and non-Retina, I used to handled images as "image.png" and "image@2X.png", and that used to do the trick in handling graphics. 因此,在使用iPhone Retina和非Retina的早期,我曾经将图像处理为“ image.png”和“ image@2X.png”,而这些图像通常用于处理图形。

But what I am facing now is that I am no more building for iPhone 3,3g,3gs. 但是我现在面临的是,我不再为iPhone 3,3g,3gs建造。 That means all images are for retina now, so the question is that how to handle iPhone 5,5c,5s images. 这意味着所有图像现在都用于视网膜,所以问题是如何处理iPhone 5,5c,5s图像。 As these devices vertical resolution is more than 960 pixels. 由于这些设备的垂直分辨率超过960像素。

Do I need to make two separate image sets for iPhone 4,4s and iPhone 5,5c,5s? 我需要为iPhone 4,4s和iPhone 5,5c,5s制作两个单独的图像集吗?

不,您不需要为iPhone 4和iPhone 5系列制作两个单独的图像集,这仅是在某些背景下要拥有整个屏幕图像的情况下才需要解决的……仅针对开始屏幕使用不同的图像。

Edit: 编辑:

icons and non-full screen graphics are probably the same on iPhone 4 & 5. For full screen wallpapers you need separate sets for different resolutions based on device here are the naming conventions you can use 图标和非全屏图形在iPhone 4和5上可能是相同的。对于全屏墙纸,您需要基于设备的不同分辨率的单独集,这里是您可以使用的命名约定

image.png -> iPhone (non-retina)
image@2x.png -> iPhone 4s/4 (retina)
image-568h@2x.png -> iPhone 5
image~ipad.png -> iPad (non-retina)
image@2x~ipad.png -> iPad (retina)

refer this apple design guide and http://www.iosres.com 请参阅此苹果设计指南http://www.iosres.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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