UITabBar项目在iOS 12.1上的向后导航上跳转 [英] UITabBar items jumping on back navigation on iOS 12.1

查看:60
本文介绍了UITabBar项目在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆