UITabBar项目在iOS 12.1上的向后导航上跳转 [英] UITabBar items jumping on back navigation on iOS 12.1
问题描述
我在主屏幕上有一个带UITabBarController
的iOS应用,导航到详细信息屏幕,并设置了hidesBottomBarWhenPushed = true
来隐藏UITabBarController
.
I have an iOS app with UITabBarController
on a master screen, navigating to a detail screen hiding the UITabBarController
with setting hidesBottomBarWhenPushed = true
.
返回主屏幕时,UITabBarController
会执行一个奇怪的跳转",如以下GIF所示:
When going back to the master screen the UITabBarController
does a strange "jump" as shown on this GIF:
仅在iOS 12.1上发生这种情况,而不是在12.0或11.x上发生.
This happens only on iOS 12.1, not on 12.0 or 11.x.
似乎是一个iOS 12.1错误,因为我注意到FB Messenger之类的其他应用程序也有这种行为,但是我想知道,是否有某种解决方法?
Seems like an iOS 12.1 bug, because I noticed other apps like FB Messenger with this behavior, but I was wondering, is there some kind of workaround for it?
推荐答案
在您的UITabBarController
中,设置isTranslucent = false
这篇关于UITabBar项目在iOS 12.1上的向后导航上跳转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!