iphone X 适配
2017-11-22 本文已影响38人
Mory
1:iPhone X 启动图片全屏
iOS11出现后,在设置约束的属性中出现了一个 Safe Area。顾名思义就是“安全区”,用以保护上部刘海和下面的横条的交互。
在设置启动图片的时候,设置的约束默认是参考 safe area 的,也就是会在启动的时候上、下显示一块白色区域。

下面说的是底部的白色区域,顶部的白色区域是一样的处理方式。
1.1 ,在 launchScreen.storyboard里面设置启动图片,给 imageView 添加上约束,勾选“use safe Area layout ”,调整约束的默认设置。


设置完成就好了,启动图片就会全屏显示。
