iPhone X适配
iPhone X的不同之处
1.屏幕尺寸是375 x 812
点,比率是9:19.5
,而不是9:16
。宽度同iPhone 6、iPhone 6s、iPhone 7 和 iPhone 8 的 4.7 英寸屏幕宽度相同,为375pt
,高度比他们增加了145pt
2.分辨率为3x
:1125 x 2436
像素
3.要考虑屏幕圆角、上方传感器区域、下方返回主页指示器
如下的内容来自:UI 設計師需要知道的 iPhone X 細節
Status Bar高度由20pt增长为44pt
底部留有34pt给Home Indicator
宽度不变,高度多了145pt,实际可利用的有效显示高度为:
145 – 24 (Status Bar) – 34 (Home Indicator) = 87pt
键盘高度由216pt变为291pt
包含Home Indicator
,Tab Bar高度由49pt变为83pt
包含Home Indicator,Toolbar高度由44pt变为83pt