Making an app Retina Display friendly

后端 未结 3 1055
不知归路
不知归路 2021-02-06 15:51

I have an app and would like to make it retina display friendly.

How exactly does the process work? What images need to be added apart from what I have?

I know t

3条回答
  •  盖世英雄少女心
    2021-02-06 16:22

    A good guide to this can be found here: http://mobile.tutsplus.com/tutorials/iphone/preparing-your-iphone-app-for-higher-resolutions/

    In general you just create 2 sets of images. Your original and then a new one twice as big with @2x in the name. So for image.png at size 32x32 you would have one that is twice the resolution called image@2x.png at size 64x64. In your app just always use the image.png in Interface Builder and when loading in code.

    There is no need to detect the device. These images will automatically be picked up by the OS and subbed in as necessary.

提交回复
热议问题