繁体   English   中英

UIViewController 边缘在 UINavigationController animation 期间未延伸到顶/底栏后面(如果它具有半透明 UIToolbar 子视图)

[英]UIViewController edges not extended behind top/bottom bars during a UINavigationController animation if it has a translucent UIToolbar subview

我将半透明 UIToolbar 显示为 UIViewController 的子视图,它是 UINavigationController 的子视图(我不使用 UINavigationController 类工具栏),因为我想要子工具栏。

Everything works fine but one thing: when I push another UIViewController on the UINavigationController stack, the next UIViewController edges are not extended behind the NavigationBar until the animation is over. 下一个 UIViewController 的 pop animation 启动时也会出现同样的问题。

旁注:

  • NavigationBar 是半透明的(默认情况下)
  • 两个 UIViewControllers 都设置为在顶部和底部栏下扩展边缘
  • 如果 UIToolbar 不是半透明的(如果设置了色调),则该问题无法重现。
  • 如果 UINavigationController 位于 UITabBarController 内,则会出现同样的问题:下一个 UIViewController 边缘未在 tabBar 下延伸。

它可以在 iOS 12 和 iOS 13 设备/模拟器上轻松重现,无需代码,只需 storyboard 编辑。

有没有人对我看起来像 UINavigationController 推送/弹出 animation 问题有任何线索?

这是它的样子: 在此处输入图像描述

我没有发现在 iPhone 11 模拟器中的 iOS 13.2 上检查过任何此类问题。 在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM