简体   繁体   English

Sketch 3的iOS图像分辨率大小

[英]iOS image resolution sizes with Sketch 3

I'm trying to understand the different image asset resolutions in Xcode/iOS development and I can't seem to wrap my head around it. 我试图了解Xcode / iOS开发中的不同图像资产分辨率,但似乎无法全神贯注。

I use sketch 3 to develop the images I use in my apps. 我使用草图3来开发我在应用程序中使用的图像。

So let's say I have an art board set up at the iPhone 5 size. 因此,假设我在iPhone 5尺寸上设置了画板。 I've used this art board to create my images at the sizes I want them to be when displayed on an iPhone 5. Would I export these images as 1x or 2x? 我已经使用该画板创建了要在iPhone 5上显示的图像。我可以将这些图像导出为1x或2x吗?

I've read that the iPhone 5 and 6 use the @2x resolution but this is where I start getting confused. 我已经读到iPhone 5和iPhone 6使用@ 2x分辨率,但这就是我开始感到困惑的地方。 If I've created the images at the iPhone 5 dimensions would I really want to up the pixel count? 如果我已经在iPhone 5尺寸上创建了图像,我真的要增加像素数吗?

Any clarification would be much appreciated! 任何澄清将不胜感激!

All Artboards are in 1x resolution. 所有画板均为1x分辨率。

When you export you should be doing it at 2x. 导出时,应该以2倍的速度进行导出。 For iPhone 6, 5, 4. 对于iPhone 6、5、4

You should really be exporting all your assets at all 3 sizes since iOS 9 still supports the older 1x on iPad 2 (should your app also support iPad) 您确实应该以所有3种尺寸导出所有资产,因为iOS 9仍支持iPad 2上的旧版本1x(应该您的应用还支持iPad)

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

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