why I see white white area in the bottom of my iPhoneX simulator?

*爱你&永不变心* 提交于 2019-12-02 01:47:34

问题


I have read some answer in the stackoverflow like this one Seeing black bars at the top and bottom of the iPhone X Simulator , but it seems little bit different since my issue only happens only in the bottom area of my screen

as we can see, there is a white area in the bottom of my loginVC. I want my UIImage (background image) to cover that white screen area.

i have set the image bottom constraint of the UIImage to the safe area like below

I have also used "use safe area layout guides"

what went wrong in here?


回答1:


Remove align bottom to Safe Area and add Bottom Space to super View (attach bottom space to superview, similar to your top space - is attached with superview)

(Also, set align bottom to Safe Area for your label containing text "Please contact IT support")

Update:

This is a kind of patch solution to your problem. You should actually set Layer outside your safe area layout (Set all anchors of Layer 1357 with respect to super view) and add additional transparent view (UIView) attached with (all anchors) Safe Area layout, containing all other UIElements, to handle it very easily.



来源:https://stackoverflow.com/questions/49354465/why-i-see-white-white-area-in-the-bottom-of-my-iphonex-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!