ios - UITabBar 项目在 iOS 12.1 上跳回后退导航

标签 ios swift uitabbar

我有一个在主屏幕上带有 UITabBarController 的 iOS 应用程序,通过设置 hidesBottomBarWhenPushed = true 导航到隐藏 UITabBarController 的详细信息屏幕。

当回到主屏幕时,UITabBarController 会执行一个奇怪的“跳跃”,如这个 GIF 所示:

enter image description here

这种情况只发生在 iOS 12.1,而不发生在 12.0 或 11.x 上。

似乎是 iOS 12.1 的错误,因为我注意到 FB Messenger 等其他应用程序也有这种行为,但我想知道,是否有某种解决方法?

最佳答案

在您的 UITabBarController 中,设置 isTranslucent = false

关于ios - UITabBar 项目在 iOS 12.1 上跳回后退导航,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53257664/

相关文章:

ios - Firebase 和 iOS : FIRAuthInternalErrorDomain "MISSING_IDENTIFIER" when trying to login with custom token

iphone - 从 TabBar 调用 ActionSheet

iOS:选择选项卡之前的选项卡栏项目标题

iphone - 当应用程序处于后台时,每 X 秒获取一次用户坐标

ios - 从照片 iOS swift 中提取 GPS 数据

iphone - 我可以提供用于Web应用程序的iPhone主屏幕快捷方式的图标吗?

objective-c - iOS 哪个是标签栏图标的默认 UIColor?

html - 如何将一系列图标和标题居中放置在同一行 (UIWebView)

ios - 如何在 CollectionViewCell 中设置元素的框架?

swift - 如何在 SwiftUI 中配置删除和禁用 ContextMenu 按钮?