iPad pro safeArea {24, 0, 20, 0}
iPad Air : {20, 0, 0, 0}
iPad、iPad mini: {20, 0, 0, 0}
iPhone X 竖屏:{44, 0, 34, 0}
横屏:{0, 44, 21, 44}
iPhone Xs Max竖屏:{44, 0, 34, 0}
横屏:{0, 44, 21, 44}
iPhone Xs 竖屏:{44, 0, 34, 0}
横屏:{0, 44, 21, 44}
iPhone 11: 竖屏:{48, 0, 34, 0}
横屏:{0, 48, 21, 48}
iPhone 11 Pro: 竖屏: {44, 0, 34, 0}
横屏:{0, 44, 21, 44}
iPhone 11 pro max : 竖屏:{44, 0, 34, 0} 横屏:{0, 44, 21, 44}
iPhone 12 竖屏:{47, 0, 34, 0}
横屏:{0, 47, 21, 47}
iPhone 12 pro 竖屏:{47, 0, 34, 0} 横屏:{0, 47, 21, 47}iPhone 12 pro max 竖屏: {47, 0, 34, 0}
横屏 0, 47, 21, 47}
总结:以下总结都是针对iOS11以上的系统
1)ipad没有刘海,但是有安全区,除iPad pro顶部是24的安全区,其他ipad机型顶部都是20的安全区
2)绝大多数刘海屏手机,竖屏状态下安全区为{44, 0, 34, 0},横屏状态下安全区为{0, 44, 21, 44},但有例外,即:
iPhone 11 竖屏:{48, 0, 34, 0},横屏:{0, 48, 21, 48}、
iPhone 12 竖屏:{47, 0, 34, 0}, 横屏:{0, 47, 21, 47}
iPhone 12 pro 竖屏:{47, 0, 34, 0},横屏:{0, 47, 21, 47}
iPhone 12 pro max 竖屏: {47, 0, 34, 0},横屏 {0, 47, 21, 47}