Images for retina screen (@2x)

北战南征 提交于 2019-11-28 02:25:23

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)

"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.

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