OGeek|极客世界-中国程序员成长平台

标题: ios - UITabBar 项目在 iOS 12.1 上跳转后退导航 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 20:47
标题: ios - UITabBar 项目在 iOS 12.1 上跳转后退导航

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

返回主屏幕时,UITabBarController 会出现奇怪的“跳跃”,如下图所示:

enter image description here

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

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



Best Answer-推荐答案


在您的 UITabBarController 中,设置 isTranslucent = false

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






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4