简体   繁体   English

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

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

I'm displaying a translucent UIToolbar as a subview of a UIViewController which is a child of a UINavigationController (I don't use the UINavigationController toolbar as I want to subclass it).我将半透明 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. 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. The same issue occurs when the pop animation of the next UIViewController starts.下一个 UIViewController 的 pop animation 启动时也会出现同样的问题。

Side notes:旁注:

  • The NavigationBar is translucent (by default) NavigationBar 是半透明的(默认情况下)
  • Both UIViewControllers are set to extend edges under top and bottom bars两个 UIViewControllers 都设置为在顶部和底部栏下扩展边缘
  • The issue is not reproducible if the UIToolbar is not translucent (of if a tint is set).如果 UIToolbar 不是半透明的(如果设置了色调),则该问题无法重现。
  • The same issue occurs if the UINavigationController is inside a UITabBarController: the next UIViewController edges are not extended under the tabBar.如果 UINavigationController 位于 UITabBarController 内,则会出现同样的问题:下一个 UIViewController 边缘未在 tabBar 下延伸。

It's easily reproducible on iOS 12 and iOS 13 devices/simulators, with no code, just storyboard editing.它可以在 iOS 12 和 iOS 13 设备/模拟器上轻松重现,无需代码,只需 storyboard 编辑。

Does anyone has any clue regarding what's looks like a UINavigationController push/pop animation issue to me?有没有人对我看起来像 UINavigationController 推送/弹出 animation 问题有任何线索?

Here is what it looks like:这是它的样子: 在此处输入图像描述

I don't observe any such issue checked on iOS 13.2 in iPhone 11 Simulator.我没有发现在 iPhone 11 模拟器中的 iOS 13.2 上检查过任何此类问题。 在此处输入图像描述

暂无
暂无

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

相关问题 如何将UINavigationController UIToolbar添加到视图的顶部而不是底部 - how to add UINavigationController UIToolbar to the top of the view not the bottom UIToolBar位置到UINavigationController的顶部 - UIToolBar position to top of UINavigationController 带有UINavigationController的UIToolbar在动画期间导航栏上的灰色框 - UIToolbar with UINavigationController cases gray box on the navigation bar during animation iOS 7 UINavigationController过渡到UITableView:动画期间为黑色半透明层 - iOS 7 UINavigationController transition to UITableView: black-translucent layer during animation 当UITabbar是半透明的并且UIViewController没有延伸到tabbar后面时,uitabbar似乎覆盖了黑色视图 - When the UITabbar is Translucent and the UIViewController is not extended behind the tabbar, the uitabbar seems like covering a black view 显示带有UIViewController动画的UINavigationController - Show UINavigationController with UIViewController animation 在UINavigationController之上的iOS不透明UIViewController - iOS opaque UIViewController on top of UINavigationController 将UIViewController放在UINavigationController堆栈的顶部 - Put a UIViewController on top of a UINavigationController stack 将 uiviewcontroller 推送到另一个带有动画从上到下的视图控制器 - push uiviewcontroller to another viewcontroller with animation from Top - bottom UIViewController上的两个标题栏(UITableViewController的子视图) - Two title bars on UIViewController (subview of UITableViewController)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM