• <i id='pYta6'><tr id='pYta6'><dt id='pYta6'><q id='pYta6'><span id='pYta6'><b id='pYta6'><form id='pYta6'><ins id='pYta6'></ins><ul id='pYta6'></ul><sub id='pYta6'></sub></form><legend id='pYta6'></legend><bdo id='pYta6'><pre id='pYta6'><center id='pYta6'></center></pre></bdo></b><th id='pYta6'></th></span></q></dt></tr></i><div id='pYta6'><tfoot id='pYta6'></tfoot><dl id='pYta6'><fieldset id='pYta6'></fieldset></dl></div>

    1. <small id='pYta6'></small><noframes id='pYta6'>

      <legend id='pYta6'><style id='pYta6'><dir id='pYta6'><q id='pYta6'></q></dir></style></legend>
      <tfoot id='pYta6'></tfoot>

        <bdo id='pYta6'></bdo><ul id='pYta6'></ul>
      1. 为什么我在 iPhoneX 模拟器底部看到白色区域?

        时间:2023-09-09
      2. <small id='ZbZrK'></small><noframes id='ZbZrK'>

            <bdo id='ZbZrK'></bdo><ul id='ZbZrK'></ul>
              <i id='ZbZrK'><tr id='ZbZrK'><dt id='ZbZrK'><q id='ZbZrK'><span id='ZbZrK'><b id='ZbZrK'><form id='ZbZrK'><ins id='ZbZrK'></ins><ul id='ZbZrK'></ul><sub id='ZbZrK'></sub></form><legend id='ZbZrK'></legend><bdo id='ZbZrK'><pre id='ZbZrK'><center id='ZbZrK'></center></pre></bdo></b><th id='ZbZrK'></th></span></q></dt></tr></i><div id='ZbZrK'><tfoot id='ZbZrK'></tfoot><dl id='ZbZrK'><fieldset id='ZbZrK'></fieldset></dl></div>
              1. <legend id='ZbZrK'><style id='ZbZrK'><dir id='ZbZrK'><q id='ZbZrK'></q></dir></style></legend><tfoot id='ZbZrK'></tfoot>
                  <tbody id='ZbZrK'></tbody>

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

                  问题描述

                  我已经在 stackoverflow 中阅读了一些类似的答案

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

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

                  我也用过使用安全区域布局指南"

                  这里出了什么问题?

                  解决方案

                  去掉align bottom to Safe Area并添加Bottom Space to super View(将bottom Space附加到superview,类似于您的顶部空间-附有superview)

                  (另外,为包含文本请联系 IT 支持"的标签设置 align bottom to Safe Area)

                  更新:

                  这是一种针对您的问题的补丁解决方案.您实际上应该在安全区域布局之外设置图层(设置图层 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 模拟器底部看到白色区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:不遵守 UITableViewCell contentView 的 AutoLayout 约束 下一篇:缩进 UITableViewCell 中的所有自动布局约束

                  相关文章

                  <tfoot id='m6QlG'></tfoot>
                  1. <small id='m6QlG'></small><noframes id='m6QlG'>

                      • <bdo id='m6QlG'></bdo><ul id='m6QlG'></ul>

                      <legend id='m6QlG'><style id='m6QlG'><dir id='m6QlG'><q id='m6QlG'></q></dir></style></legend>
                      <i id='m6QlG'><tr id='m6QlG'><dt id='m6QlG'><q id='m6QlG'><span id='m6QlG'><b id='m6QlG'><form id='m6QlG'><ins id='m6QlG'></ins><ul id='m6QlG'></ul><sub id='m6QlG'></sub></form><legend id='m6QlG'></legend><bdo id='m6QlG'><pre id='m6QlG'><center id='m6QlG'></center></pre></bdo></b><th id='m6QlG'></th></span></q></dt></tr></i><div id='m6QlG'><tfoot id='m6QlG'></tfoot><dl id='m6QlG'><fieldset id='m6QlG'></fieldset></dl></div>