iOSは、左上が原点(x軸、y軸の値0)
| デバイス | 高さ × 幅 |
| iPhone6Plus | 736 × |
[c]
// デバイスの高さを取得
let deviceHeight = UIScreen.mainScreen().bounds.size.height
print("deviceHeight=\(deviceHeight)")
[/c]
ステータスバーの高さ
20ピクセル
[c]
UIApplication.sharedApplication().statusBarFrame.height
[/c]

コメント