iphone 各个设备的分辨率和对应的像素尺寸 以及所用到的 在 Images.xcassets 中的图片规格

本文详细介绍了不同iPhone型号的屏幕尺寸及分辨率,包括从iPhone 4S到iPhone 6 Plus的各种@1x、@2x及@3x图像规格,并提供了如何在Xcode中使用Images.xcassets来管理这些资源的方法。


http://mobileoop.com/how-to-use-auto-layout-in-xcode-6-for-ios-7-and-8-development

  • 1x images are for the original iPhone through the 3GS - 'standard' resolution devices (3.5" screens)

  • 2x images are for the iPhone 4 and 4S (3.5" Retina screens)

  • Retina 4 2x are for the iPhone 5 and 5s (4" Retina screens)

  • 3x images are for the new iPhone 6+ (5.5" super-Retina [3x] screen)


http://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions

https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html

In 1x place image with resolution 320 x 480. 
In 2x place image with resolution 640 x 960. 
In Retina 4 2x place image with resolution 640 x 1136. 
in 3x place image with resolution 1242 x 2207. 

Images of Retina 4 2x will upscale to resolution 750 x 1334. (750 x 1334是iphone 6用
Images 3x will downscale to resolution 1080 x 1920. (1080 x 1920是iphone6+ 用)

注意:iphone 6 使用的是 @2x的图片

解决办法 


怎么使用 Images.xcassets

iPhone 4S
Screen Size: 3.5 Inches
Resolution: 640 x 960 (Half: 320 x 480)

iPhone 5
Screen Size: 4.0 Inches
Resolution: 640 × 1136 (Half: 320 x 568)

iPhone 5S/5C
Screen Size: 4.0 Inches
Resolution: 640 x 1136 (Half: 320 x 568)

iPhone 6
Screen Size: 4.7 Inches
Resolution: 828 x 1472 (Half: 414 x 736)
Resolution: 750 x 1334 (Half: 375 x 667)

iPhone 6 Plus
Screen Size: 5.5 Inches
Resolution: 906 x 1704 (Half: 453 x 852)
Resolution: 1242 x 2208 (1/3: 414 x 736)
The size of iPhone 6 Plus is @3x scaling. So, it is divided by 3.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值