为什么我在iPhoneX模拟器底部看到白色区域? [英] why I see white white area in the bottom of my iPhoneX simulator?

查看:841
本文介绍了为什么我在iPhoneX模拟器底部看到白色区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在stackoverflow中读到了一些像这样的答案



我们可以看到,底部有一个白色区域我的loginVC。我希望我的UIImage(背景图片)覆盖白色屏幕区域。



我已将UIImage的图像底部约束设置为安全区域,如下所示





我还使用了使用安全区域布局指南





这里出了什么问题?

解决方案

删除将底部对齐到安全区域并添加底部空间到超级视图(将底部空间附加到超级视图,类似于您的顶部空间 - 附有超级视图)



(另外,设置将底部对齐到安全区域以获取包含文字请联系IT支持的标签





更新:



这是一种针对您的问题的补丁解决方案。你应该在你的安全区域布局之外设置图层(设置1357层相对于超级视图的所有锚点)并添加附加了(所有锚点)安全区域布局的附加透明视图(UIView),包含所有其他UIElements,以便处理它很容易。


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?

解决方案

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.

这篇关于为什么我在iPhoneX模拟器底部看到白色区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆