スクリーンサイズのまとめ
端末ごとのサイズを調べる時に複数サイト回って探していたので、まとめました。(随時更新予定ですっ)
<iPhone>
iOSの端末サイズ | width | height |
---|---|---|
iPhone 2G, 3G, 3GS | 320 | 480 |
iPhone 4, 4s | 320 | 480 |
iPhone 5, 5s, 5c, SE | 320 | 568 |
iPhone 6, 6s, 7, 8 | 375 | 667 |
iPhone 6+, 6s+, 7+, 8+ | 414 | 736 |
iPhone X | 375 | 812 |
<iPad>
iOSの端末サイズ | width | height |
---|---|---|
iPad Mini | 768 | 1024 |
iPad Air & Small Pro | 768 | 1024 |
Large iPad Pro | 1024 | 1366 |
(※数字はステータスバー領域を含む場合の画面サイズです。=スクリーン全体のサイズ)
サイズ取得方法
let boundSize: CGSize = UIScreen.main.bounds.size
let width = boundSize.width
let height = boundSize.height