如何判断 ios 设备机型(附所有 ios 设备尺寸)

1,527 阅读8分钟
const ua = navigator.userAgent;
if (/iPad|iPhone|iPod/.test(ua)) { // ios 移动设备
    // 通过设备的宽高尺去判断对对应 ios 设备的像素宽高
    const isIphone14Pro = window.screen.width === 1179 && window.screen.height === 2556
}

以下是所有 ios (ipone & ipad)设备尺寸列表

Family & ModelLogical WidthLogical HeightPhysical WidthPhysical HeightPPIScale FactorScreen DiagonalRelease
iPad Pro (6th gen 12.9")1024136620482732264212.9"2022-10-26
iPad Pro (6th gen 11")834119416682388264211"2022-10-26
iPad 10th gen820118016402360264210.9"2022-10-26
iPhone 14 Plus4289261284277845836.7"2022-10-07
iPhone 14 Pro Max4309321290279646036.7"2022-09-16
iPhone 14 Pro3938521179255646036.1"2022-09-16
iPhone 143908441170253246036.1"2022-09-16
iPhone SE 3rd gen375667750133432624.7"2022-03-08
iPad Air (5th gen)820118016402360264210.9"2022-03-08
iPhone 133908441170253246036.06"2021-09-14
iPhone 13 mini3758121080234047635.42"2021-09-14
iPhone 13 Pro Max4289261284277845836.68"2021-09-14
iPhone 13 Pro3908441170253246036.06"2021-09-14
iPad 9th gen810108016202160264210.2"2021-09-14
iPad Pro (5th gen 12.9")1024136620482732264212.9"2021-05-21
iPad Pro (5th gen 11")834119416682388264211"2021-05-21
iPad Air (4th gen)820118016402360264210.9"2020-10-23
iPhone 123908441170253246036.06"2020-10-13
iPhone 12 mini3758121080234047635.42"2020-10-13
iPhone 12 Pro Max4289261284277845836.68"2020-10-13
iPhone 12 Pro3908441170253246036.06"2020-10-13
iPad 8th gen810108016202160264210.2"2020-09-18
iPhone SE 2nd gen375667750133432624.7"2020-04-24
iPad Pro (4th gen 12.9")1024136620482732264212.9"2020-03-25
iPad Pro (4th gen 11")834119416682388264211"2020-03-25
iPad 7th gen810108016202160264210.2"2019-09-25
iPhone 11 Pro Max4148961242268845836.46"2019-09-20
iPhone 11 Pro3758121125243645835.85"2019-09-20
iPhone 11414896828179232626.1"2019-09-20
iPod touch 7th gen320568640113632624"2019-05-28
iPad Mini (6th gen)74411331488226632628.3"2019-03-18
iPad Mini (5th gen)76810241536204832627.9"2019-03-18
iPad Air (3rd gen)834111216682224264210.5"2019-03-18
iPad Pro (3rd gen 12.9")1024136620482732264212.9"2018-11-07
iPad Pro (3rd gen 11")834119416682388264211"2018-11-07
iPhone XR414896828179232626.06"2018-10-26
iPhone XS Max4148961242268845836.46"2018-09-21
iPhone XS3758121125243645835.85"2018-09-21
iPad 6th gen76810241536204826429.7"2018-03-27
iPhone X3758121125243645835.85"2017-11-03
iPhone 8 Plus4147361080192040135.5"2017-09-22
iPhone 8375667750133432624.7"2017-09-22
iPad Pro (2nd gen 12.9")1024136620482732264212.9"2017-06-13
iPad Pro (2nd gen 10.5")834111216682224264210.5"2017-06-13
iPad 5th gen76810241536204826429.7"2017-03-24
iPhone 7 Plus4147361080192040135.5"2016-09-16
iPhone 7375667750133432624.7"2016-09-16
iPhone SE 1st gen320568640113632624"2016-03-31
iPad Pro (1st gen 9.7”)76810241536204826429.7"2016-03-31
iPad Pro (1st gen 12.9")1024136620482732264212.9"2015-11-11
iPhone 6s Plus4147361080192040135.5"2015-09-25
iPhone 6s375667750133432624.7"2015-09-25
iPad mini 476810241536204832627.9"2015-09-09
iPod touch 6th gen320568640113632624"2015-07-15
iPad Air 276810241536204832629.7"2014-10-22
iPad mini 376810241536204826427.9"2014-10-22
iPhone 6 Plus4147361080192040135.5"2014-09-19
iPhone 6375667750133432624.7"2014-09-19
iPad mini 276810241536204832627.9"2013-11-12
iPad Air76810241536204826429.7"2013-11-01
iPhone 5C320568640113632624"2013-09-20
iPhone 5S320568640113632624"2013-09-20
iPad 4th gen76810241536204826429.7"2012-11-12
iPad mini7681024768102416317.9"2012-11-02
iPod touch 5th gen320568640113632624"2012-10-11
iPhone 5320568640113632624"2012-09-21
iPad 3rd gen76810241536204826429.7"2012-03-16
iPhone 4S32048064096032623.5"2011-10-14
iPad 27681024768102413219.7"2011-03-11
iPod touch 4th gen32048064096032623.5"2010-09-01
iPhone 432048064096032623.5"2010-06-21
iPad 1st gen7681024768102413219.7"2010-04-03
iPod touch 3rd gen32048032048016313.5"2009-09-09
iPhone 3GS32048032048016313.5"2009-06-19
iPod touch 2nd gen32048032048016313.5"2008-09-09
iPhone 3G32048032048016313.5"2008-07-11
iPod touch 1st gen32048032048016313.5"2007-09-05
iPhone 1st gen32048032048016313.5"2007-06-29