【发布时间】:2018-11-08 23:55:43
【问题描述】:
iPad 11 英寸
(lldb) po UIApplication.shared.windows[0].layoutMargins
▿ UIEdgeInsets
- top : 32.0
- left : 8.0
- bottom : 28.0
- right : 8.0
iPad 10.5 英寸
(lldb) po UIApplication.shared.windows[0].layoutMargins
▿ UIEdgeInsets
- top : 28.0
- left : 8.0
- bottom : 8.0
- right : 8.0
iPhone 8 Plus
(lldb) po UIApplication.shared.windows[0].layoutMargins
▿ UIEdgeInsets
- top : 8.0
- left : 8.0
- bottom : 8.0
- right : 8.0
新的 11 英寸 iPad 机型由于圆角而具有比 10.5 英寸机型更大的上边距是有道理的。但是为什么 iPad 10.5 英寸机型的上边距不是 8.0 呢? iPhone 在所有边缘都有一致的边距...
有什么想法吗?
【问题讨论】:
标签: ios12 layoutmargins