<tfoot id='JLc9n'></tfoot>

      <legend id='JLc9n'><style id='JLc9n'><dir id='JLc9n'><q id='JLc9n'></q></dir></style></legend>

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

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

        自动布局完成后是否会触发 iOS 方法?

        时间:2023-09-11

          <legend id='YQAhQ'><style id='YQAhQ'><dir id='YQAhQ'><q id='YQAhQ'></q></dir></style></legend>
        1. <tfoot id='YQAhQ'></tfoot>

              <tbody id='YQAhQ'></tbody>
              <bdo id='YQAhQ'></bdo><ul id='YQAhQ'></ul>
                • <small id='YQAhQ'></small><noframes id='YQAhQ'>

                • <i id='YQAhQ'><tr id='YQAhQ'><dt id='YQAhQ'><q id='YQAhQ'><span id='YQAhQ'><b id='YQAhQ'><form id='YQAhQ'><ins id='YQAhQ'></ins><ul id='YQAhQ'></ul><sub id='YQAhQ'></sub></form><legend id='YQAhQ'></legend><bdo id='YQAhQ'><pre id='YQAhQ'><center id='YQAhQ'></center></pre></bdo></b><th id='YQAhQ'></th></span></q></dt></tr></i><div id='YQAhQ'><tfoot id='YQAhQ'></tfoot><dl id='YQAhQ'><fieldset id='YQAhQ'></fieldset></dl></div>
                • 本文介绍了自动布局完成后是否会触发 iOS 方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个 iOS 应用程序,我需要知道新视图何时在屏幕上完全可见;也就是说,当 Autolayout 完成计算并且视图完成绘制时.

                  I have an iOS app in which I need to know when a new view is completely visible on-screen; that is, when Autolayout has finished its calculations and the view has finished drawing.

                  ViewDidAppear 似乎在视图完全可见之前就触发了.如果我关闭 Autolayout,时间似乎与人类感知一致,但我需要在这个项目中使用 Autolayout(所以这不是一个解决方案......只是一个测试).

                  ViewDidAppear seems to fire well before the view is completely visible. If I turn off Autolayout, the timing seems to line up as far as human perception goes, but I need to use Autolayout in this project (so this isn't a solution...just a test).

                  自动布局计算完成后是否有任何方法可以触发?或者当视图实际可见时触发的另一种方法(因为 ViewDidAppear 不适用于此)?

                  Is there any method that fires when Autolayout is done calculating? Or another method that fires when the view is ACTUALLY visible (since ViewDidAppear doesn't work for this)?

                  谢谢!

                  推荐答案

                  我正在为此使用 viewDidLayoutSubviews.苹果的文档说,调用通知视图控制器它的视图刚刚布置了它的子视图."

                  I'm using viewDidLayoutSubviews for this. Apple's documentation says, "Called to notify the view controller that its view has just laid out its subviews."

                  这篇关于自动布局完成后是否会触发 iOS 方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:已经为 iPhone 4 和 5 构建的应用程序将如何在 iPhone 6 和 6 plus 中展示 下一篇:意外 NSAutoresizingMaskLayoutConstraint 的 AutoLayout 约束问题

                  相关文章

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

                      <tfoot id='GBqiM'></tfoot>

                      <small id='GBqiM'></small><noframes id='GBqiM'>