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

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

    <tfoot id='R2Ymy'></tfoot>

      <bdo id='R2Ymy'></bdo><ul id='R2Ymy'></ul>

    1. 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout

      edgesForExtendedLayout ignored on iOS9 when using custom animation(使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout)

          • <bdo id='LsWPn'></bdo><ul id='LsWPn'></ul>
          • <small id='LsWPn'></small><noframes id='LsWPn'>

          • <i id='LsWPn'><tr id='LsWPn'><dt id='LsWPn'><q id='LsWPn'><span id='LsWPn'><b id='LsWPn'><form id='LsWPn'><ins id='LsWPn'></ins><ul id='LsWPn'></ul><sub id='LsWPn'></sub></form><legend id='LsWPn'></legend><bdo id='LsWPn'><pre id='LsWPn'><center id='LsWPn'></center></pre></bdo></b><th id='LsWPn'></th></span></q></dt></tr></i><div id='LsWPn'><tfoot id='LsWPn'></tfoot><dl id='LsWPn'><fieldset id='LsWPn'></fieldset></dl></div>
              • <tfoot id='LsWPn'></tfoot>
                  <tbody id='LsWPn'></tbody>
                <legend id='LsWPn'><style id='LsWPn'><dir id='LsWPn'><q id='LsWPn'></q></dir></style></legend>
                本文介绍了使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                iOS9 在使用 UIViewControllerAnimatedTransitioning 实现自定义动画时似乎忽略了目标视图控制器的 edgesForExtendedLayout,因此内容最终位于导航栏下方.知道为什么会这样吗?

                我在

                解决方案

                ViewDidLoad 中的这个修复了,你能确认一下吗:]

                self.edgesForExtendedLayout = .Topself.extendedLayoutIncludesOpaqueBars = true

                iOS9 seems to ignore destination view controller's edgesForExtendedLayout when implementing custom animation using UIViewControllerAnimatedTransitioning, therefore the content ends up below the navigation bar. Any idea why this is happening?

                I've hosted an example at https://github.com/nmarkovic04/CustomAnimationTest. Running it on 8.4 and 9.1 shows the difference but you can most likely try any other 8.x and 9.x version.

                Running on XCode 7, Swift 2.0.

                解决方案

                this in ViewDidLoad fixes it can you confirm pls :]

                self.edgesForExtendedLayout = .Top self.extendedLayoutIncludesOpaqueBars = true

                这篇关于使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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屋-程序员

                <tfoot id='3vf3y'></tfoot>
                    1. <i id='3vf3y'><tr id='3vf3y'><dt id='3vf3y'><q id='3vf3y'><span id='3vf3y'><b id='3vf3y'><form id='3vf3y'><ins id='3vf3y'></ins><ul id='3vf3y'></ul><sub id='3vf3y'></sub></form><legend id='3vf3y'></legend><bdo id='3vf3y'><pre id='3vf3y'><center id='3vf3y'></center></pre></bdo></b><th id='3vf3y'></th></span></q></dt></tr></i><div id='3vf3y'><tfoot id='3vf3y'></tfoot><dl id='3vf3y'><fieldset id='3vf3y'></fieldset></dl></div>
                    2. <small id='3vf3y'></small><noframes id='3vf3y'>

                        <tbody id='3vf3y'></tbody>
                      • <bdo id='3vf3y'></bdo><ul id='3vf3y'></ul>
                        <legend id='3vf3y'><style id='3vf3y'><dir id='3vf3y'><q id='3vf3y'></q></dir></style></legend>