手機(jī)列表
手機(jī)型號(hào) |
屏幕尺寸 |
開(kāi)發(fā)尺寸 |
分辨率 |
圖片后綴 |
iphone14 |
6.1英寸 |
390x844 pt |
1170x2532 px |
@3x |
iphone14 Plus |
6.7英寸 |
428x926 pt |
1284x2778 px |
@3x |
iphone14 pro |
6.1英寸 |
393x852 pt |
1179x2556 px |
@3x |
iphone14 pro max |
6.7英寸 |
430x932 pt |
1290x2796 px |
@3x |
iphone13 |
6.1英寸 |
390x844 pt |
1170x2532 px |
@3x |
iphone13 pro |
6.1英寸 |
390x844 pt |
1170x2532 px |
@3x |
iphone13 pro max |
6.7英寸 |
428x926 pt |
1284x2778 px |
@3x |
iphone13 mini |
5.4英寸 |
360x780 pt |
1080x2340 px |
@3x |
iphone SE |
4.7英寸 |
375x667 pt |
750x1334 px |
@3x |
iphone12 |
6.1英寸 |
390x844 pt |
1170x2532 px |
@3x |
iphone12 pro |
6.1英寸 |
390x844 pt |
1170x2532 px |
@3x |
iphone12 pro max |
6.7英寸 |
428x926 pt |
1284x2778 px |
@3x |
iphone12 mini |
5.4英寸 |
360x780 pt |
1080x2340 px |
@3x |
iphone11 |
6.1英寸 |
414x896 pt |
828x1792 px |
@2x |
iphone11 pro |
5.8英寸 |
375x812 pt |
1125x2436 px |
@3x |
iphone11 pro max |
6.5英寸 |
414x896 pt |
1242x2688 px |
@3x |
iphone X |
5.8英寸 |
375x812 pt |
1125x2436 px |
@3x |
iphone XS |
5.8英寸 |
375x812 pt |
1125x2436 px |
@3x |
iphone XS max |
6.5英寸 |
414x896 pt |
1242x2688 px |
@3x |
iphone XR |
6.1英寸 |
414x896 pt |
828x1792 px |
@2x |
iphone6/6s/7/8 |
4.7英寸 |
375x667 pt |
750x1334 px |
@2x |
iphone6/6s/7/8 plus |
5.5英寸 |
414x736 pt |
1242x2208 px |
@3x |
iphone5/5S/5C |
4英寸 |
320x568 pt |
640x1136 px |
@2x |
iphone4/4S |
3.5英寸 |
320x480 pt |
640x960 px |
@2x |
屏幕適配
/// 主窗口
public static let XKeyWindow = UIApplication.shared.keyWindow ?? UIWindow()
/// 根VC
public static let XRootVC = XKeyWindow.rootViewController ?? UIViewController()
/// 屏幕寬度
public static let XScreenWidth = UIScreen.main.bounds.width
/// 屏幕高度
public static let XScreenHeight = UIScreen.main.bounds.height
/// 是否iPhoneX系列
public static let XDevice_Is_iPhoneX: Bool = {
if XScreenWidth > 736 {
return true
} else {
return false
}
}()
/// 頂部安全高度
public static let XHeight_SafeTop = XDevice_Is_iPhoneX ? CGFloat(24.0) : CGFloat(0.0)
/// 狀態(tài)欄高度
public static let XStatusBarHeight = UIApplication.shared.statusBarFrame.height
/// 導(dǎo)航欄高度(加上頂部安全高度和狀態(tài)欄高度)
public static let XNavBarHeight = XStatusBarHeight + CGFloat(44.0)
/// 底部返回欄高度
public static let XHomeIndicatorHeight: CGFloat = XKeyWindow.safeAreaInsets.bottom ?? (XDevice_Is_iPhoneX ? CGFloat(34.0) : CGFloat(0))
/// tabbar高度
public static let XTabBarHeight = XDevice_Is_iPhoneX ? CGFloat(kHomeIndicatorHeight + 49.0) : CGFloat(49.0)