What should image sizes be at @1x, @2x and @3x in Xcode?

后端 未结 5 829
轮回少年
轮回少年 2020-11-29 17:47

For example, I have a 100*100 size imageview or button, and I want to set its image or backgroundImage with a local .png file. Based o

5条回答
  •  情歌与酒
    2020-11-29 18:38

    Use the assets catalog. Xcode will manage the @1x, @2x, @3x easilly, and tell you the dimensions for the images.

    With it it's easy to manage the AppIcon and LaunchScreen images.

提交回复
热议问题