<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 方法?

        Is there an iOS method that fires when Autolayout has completed?(自动布局完成后是否会触发 iOS 方法?)

          <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 方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  iOS AutoLayout - get frame size width(iOS AutoLayout - 获取帧大小宽度)
                  Auto layout constraints issue on iOS7 in UITableViewCell(UITableViewCell中iOS7上的自动布局约束问题)
                  How to resize superview to fit all subviews with autolayout?(如何调整超级视图的大小以适应所有具有自动布局的子视图?)
                  Springs in Auto Layout: Distribute views evenly, with constraints, in Xcode 5(自动布局中的弹簧:在 Xcode 5 中使用约束均匀分布视图)
                  reloadData() of UITableView with Dynamic cell heights causes jumpy scrolling(具有动态单元格高度的 UITableView 的 reloadData() 导致跳跃滚动)
                  What is NSLayoutConstraint quot;UIView-Encapsulated-Layout-Heightquot; and how should I go about forcing it to recalculate cleanly?(什么是 NSLayoutConstraint“UIView-Encapsulated-Layout-Height?我应该如何强制它干净地重新计算?) - IT屋-程序员

                        <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'>

                            <tbody id='GBqiM'></tbody>