IOS基础-设计UI@1X@2X@3X是什么

官方资料

苹果官网的设计规范

图片和图标尺寸相关

Supply high-resolution images for all artwork in your app, for all devices your app supports. Depending on the device, you accomplish this by multiplying the number of pixels in each image by a specific scale factor. A standard resolution image has a scale factor of 1.0 and is referred to as an @1x image. High resolution images have a scale factor of 2.0 or 3.0 and are referred to as @2x and @3x images. Suppose you have a standard resolution @1x image that’s 100px × 100px, for example. The @2x version of this image would be 200px × 200px. The @3x version would be 300px × 300px.

DeviceScale factor
iPhone X, iPhone 8 Plus, iPhone 7 Plus, and iPhone 6s Plus@3x
All other high-resolution iOS devices@2x

从官网的资料我们可以看出,@1X@2X@3X是苹果ios开发不同分辨率的设备统一为一个尺寸而标记的,数字1、2、3表示分辨率的倍数。

iPhone各种屏幕分辨率

设备屏幕尺寸分辨率(pt)Reader分辨率(px)渲染后PPI
iPhone 3GS3.5吋320x480@1x320x480163
iPhone 4/4s3.5吋320x480@2x640x960330
iPhone 5/5s/5c4.0吋320x568@2x640x1136326
iPhone 64.7吋375x667@2x750x1334326
iPhone 6Plus5.5吋414x736@3x1242x22081080x1920401
iPhone 6s4.7吋375x667@2x750x1334326
iPhone 6Plus5.5吋414x736@3x1242x22081080x1920401
iPhone 74.7吋375x667@2x750x1334326
iPhone 7Plus5.5吋414x736@3x1242x22081080x1920401
iPhone 84.7吋375x667@2x750x1334326
iPhone 8Plus5.5吋414x736@3x1242x22081080x1920401
iPhone X5.8吋375x812@3x1125x2436458
UI图片资源示例

以上做了一些简单的说明,明白了我们标题中,@1X@2X@3X在什么时候和什么设备上使用,而具体设计规范,看官方文档就知道了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值