Images for retina screen (@2x)

大城市里の小女人 提交于 2019-11-26 23:47:13

问题


Now I am making a Game with spritekit(swift) in Xcode 6.

It has to be playable for iPhone 4s and higher. But as far as I know are all iphones from 4s and higher Retina so I can add all images with (750 x 1334 pix) and with @2x.png.

So I do not need to add images without @2x..

Am I correct?


回答1:


Example: If you have a 512 x 512 (1x) image and you want it to support (2x and 3x) you have to include those 2 files like this:

yourImage.png       // (512x512 at 1x)
yourImage@2x.png    // (1024x1024 at 2x)
yourImage@3x.png    // (1536x1536 at 3x)



回答2:


"iOS Human Interface Guidelines: Icon and Image Sizes" lists asset sizes for the current devices, which includes the 4s. The only current devices with @1x displays are iPads.

Unless you know that iPads won't run your app (which I don't think you can do, as they can run all apps in stretch mode) you will want to include @1x sizes.

In any event, you will probably want to include a @1x icon, as the app store is (I think) still visible to people on older devices, and your app may be rejected without it.

Also, don't forget @3x if you want to support the iPhone 6 Plus.



来源:https://stackoverflow.com/questions/27279713/images-for-retina-screen-2x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!