简体   繁体   中英

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).

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.

Side notes:

  • The NavigationBar is translucent (by default)
  • Both UIViewControllers are set to extend edges under top and bottom bars
  • The issue is not reproducible if the UIToolbar is not translucent (of if a tint is set).
  • The same issue occurs if the UINavigationController is inside a UITabBarController: the next UIViewController edges are not extended under the tabBar.

It's easily reproducible on iOS 12 and iOS 13 devices/simulators, with no code, just storyboard editing.

Does anyone has any clue regarding what's looks like a UINavigationController push/pop animation issue to me?

Here is what it looks like: 在此处输入图像描述

I don't observe any such issue checked on iOS 13.2 in iPhone 11 Simulator. 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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