同时该API根据UIScreen的scale,自动查找包含对应高倍图后缀名(@2x)的文件,如果找到二倍图,则image.scale=2.0,对应逻辑size大小以point度量(pixel度量的一半);如果没找到设置默认image.scale=1.0,对应逻辑size大小同像素尺寸。因此,使用该方法,无需特意指定高倍图后缀。在实际运行时,系统如果发现当前设备是Retina屏(sc...
例如在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两种分辨率的图片。
例如在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两种分辨率的图片。
// Bounds of entire screen in points(本地坐标系,起点为[0,0]) @property(nonatomic,readonly) CGRect ***bounds***; //考虑转屏的影响,按照实际屏幕方向(UIDeviceOrientation)的宽高 #define ***SCREEN_WIDTH ***([UIScreenmainScreen].bounds.size.width) #define ***SCREEN_HEIGHT ***([UIScreen...
Size6.1 inches, 90.2 cm2(~86.0% screen-to-body ratio) Resolution1170 x 2532 pixels, 19.5:9 ratio (~460 ppi density) ProtectionCeramic Shield glass Platform OSiOS 14.1, upgradable to iOS 18.2.1 ChipsetApple A14 Bionic (5 nm) CPUHexa-core (2x3.1 GHz Firestorm + 4x1.8 GHz Icestorm) ...
早期的iPhone3GS的屏幕分辨率是320x480(PPI = 163),iOS绘制图形(CGPoint/CGSize/CGRect)均以point为单位(measured in points): 1point = 1pixel(Point Per Inch = Pixel Per Inch = PPI) 后来在iPhone4中,同样大小(3.5inch)的屏幕采用了Retina显示技术,横、纵方向像素密度都被放大到2倍,像素分辨率提高到(...
Screen Size 2.80 x 6.07 inches 7.12 x 15.43 cm Display Width and Height in inches and cm. Screen Area 17.0 square inches / 109 square cm The Rounded Corners Account for only 0.6% of Full Rectangular Screen Area A better measure of size than the diagonal length. Sensor Slot Area Dynamic...
where is it now referred to as a “Dynamic Island”. The opaque area of the pill-shaped region hiding the front TrueDepth and IR cameras is no longer a notch and is made to “expand” in OLED screen in a dynamic way giving the illusion that it is part of the display, and not merel...
won't bulk up the phone, and may feature some extra utility like a kickstand or MagSafe ring. As for screen protectors, tempered glass options are your best bet to keep the display underneath free of scratches and cracks. They're relatively affordable, too, often coming inmulti-packs for ...
Size6.7 inches, 109.8 cm2(~87.4% screen-to-body ratio) Resolution1284 x 2778 pixels, 19.5:9 ratio (~458 ppi density) ProtectionCeramic Shield glass PlatformOSiOS 15, upgradable to iOS 18.2.1 ChipsetApple A15 Bionic (5 nm) CPUHexa-core (2x3.23 GHz Avalanche + 4x1.82 GHz Blizzard) ...