简体   繁体   English

iPhone 5,iPhone 6图像尺寸

[英]iPhone 5, iPhone 6 image sizes

Now that there are many different screen sizes, what images should I supply to get optimal results. 现在有许多不同的屏幕尺寸,我应该提供哪些图像以获得最佳效果。 Eg from my understanding, both the iPhone 5 and 6 use @2x images. 以我的理解为例,iPhone 5和iPhone 6均使用@ 2x图像。 Does that mean that images are scaled up for the iPhone 6? 这是否意味着可以为iPhone 6放大图像? Or are the images scaled down for the iPhone 5. What images should I supply. 还是按比例缩小了iPhone 5的图像?我应该提供哪些图像。 I can't seem to do it properly with Images.xcassets in Xcode 6. 我似乎无法使用Xcode 6中的Images.xcassets正确执行此操作。

Our UI Designer used to create Vector Images with iPhone 5 resolution means 1136*640 ,they create 1334*750 iPhone 6 resolution images & down scale it to iPhone 5 resolution . 我们的UI设计器用于创建分辨率为iPhone 5的矢量图像,即1136 * 640,可创建分辨率为1334 * 750的iPhone 6分辨率图像,并将其缩小至iPhone 5分辨率。 So we used to add iPhone 5 images only in @2x , then Xcode scales @2x images on iPhone 6 so it will not look bad as designer has created iPhone 6 resolution supported image & down scaled to iPhone 5 . 因此,我们以前只在@ 2x中添加iPhone 5图像,然后Xcode在iPhone 6上缩放@ 2x图像,因此当设计人员创建了支持iPhone 6分辨率的图像并缩小为iPhone 5时,Xcode看起来不会很糟糕。

iPhone 6 plus uses @3x, iPhone 5 @2x, so you need to be supplying at least @3x images if your supporting iPhone 6 plus. iPhone 6 plus使用@ 3x,iPhone 5使用@ 2x,因此,如果支持iPhone 6 plus,则至少需要提供@ 3x图像。 Images will be scaled down if you just provide @3x, on older devices this uses device resources/processing power so supplying @1x @2x for older devices (if your supporting them) will enhance user experience 如果您仅提供@ 3x,图像将按比例缩小,在较旧的设备上,这会使用设备资源/处理能力,因此为较旧的设备提供@ 1x @ 2x(如果您支持)会增强用户体验

More information on this subject can be found here: Image resolution for new iPhone 6 and 6+, @3x support added? 有关此主题的更多信息,请参见: 新iPhone 6和6+的图像分辨率,是否添加了@ 3x支持?

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

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