iPhone分辨率总结 设备 iPhone屏幕尺寸 Screen Size逻辑分辨率 Point缩放因子Scale Factor设备分辨率 (Pixel)物理显示分辨率...
例如在iPhone3GS中,scale=1,用的图标是50x50pixel(logicalimage.size=50x50point);在iPhone4~6中,scale=2,则需要100×100pixel(logical image.size=50x50point,乘以image.scale=dimensions in pixels),并且命名为icon@2x.png。 如果APP要同时兼容iPhone3GS~iPhone6,则需要提供icon.png/icon@2x.png两种分辨率的图片。
width) #define SCREEN_HEIGHT ([UIScreenmainScreen].bounds.size.height) #define STATUSBAR_HEIGHT ([UIApplicationsharedApplication].statusBarFrame.size.height) //不考虑转屏的影响,只取竖屏(UIDeviceOrientationPortrait)的宽高 #define SCREEN_WIDTH MIN([UIScreenmainScreen].bounds.size.width, [UIScreen...
1 point = scalepixel(在iPhone4~6中,缩放因子scale=2;在iPhone6+中,缩放因子scale=3)。 可以理解为: scale=绝对长度比(point/pixel)=单位长度内的数量比(pixel/point) (2)UIScreen.scale UIScreen.h中定义了该属性: // The natural scale factor associated with the screen.(read-only) @property(nonato...
早期的iPhone3GS的屏幕分辨率是320*480(PPI=163),iOS绘制图形(CGPoint/CGSize/CGRect)均以point为单位(measured in points): 1 point = 1 pixel(Point Per Inch=Pixel Per Inch=PPI) 后来在iPhone4中,同样大小(3.5 inch)的屏幕采用了Retina显示技术,横、纵向方向像素密度都被放大到2倍,像素分辨率提高到(320...
Physical Screen Size6.1INCH Resolution1179 x 2556PX Viewport Size393 x 852PX Pixel Density461 PPI Device-Independent Pixels154 PPI Pixel Ratio3 xxhdpi Width1179PX Height2556PX Device Width393PX Device Height852PX Dimensions147.6 x 71.6 x 7.8mm(5.81 x 2.82 x 0.31in) ...
Physical Screen Size 6.7 INCH Resolution 1290 x 2796 PX Viewport Size 430 x 932 PX Pixel Density 460 PPI Device-Independent Pixels 153 PPI Pixel Ratio 3 xxhdpi Width 1290 PX Height 2796 PX Device Width 430 PX Device Height 932 PX Dimensions 160.7 x 77.6 x 7.9 mm (6.33 x 3.06...
1 point = scale pixel(在iPhone4~6中,缩放因子scale=2;在iPhone6+中,缩放因子scale=3)。可以理解为:scale=绝对长度比(point/pixel)= 单位长度内的数量比(pixel/point)UIScreen.h中定义了该属性://This value reflects the scale factor needed to convert from the default logical ...
该方法使用系统缓存,适合表视图重复加载图像的情形。同时该API根据UIScreen的scale,自动查找包含对应高倍图后缀名(@2x)的文件,如果找到二倍图,则image.scale=2.0,对应逻辑size大小以point度量(pixel度量的一半);如果没找到设置默认image.scale=1.0,对应逻辑size大小同像素尺寸。因此,<2> 这组方法创建...
屏幕里像素值浓度,resolution/Screen size可以反映出手机密度 Density-independent pixel (dip) 指的是逻辑密度计算单位,dip和具体像素值的对应公式是dip/pixel=dpi值/160 屏幕分辨率范围 : 屏幕 低密度( 120), ldpi 中密度( 160), mdpi 高密度( 240), hdpi ...