我在主屏幕上有一个带有UITabBarController的iOS应用程序,导航到隐藏UITabBarController的详细屏幕,并设置了hidesBottomBarWhenPushed = true.
当回到主屏幕时,UITabBarController执行一个奇怪的“跳转”,如此GIF所示:
@L_502_0@
这仅在iOS 12.1上发生,而不是在12.0或11.x上发生.
看起来像iOS 12.1的错误,因为我注意到其他应用程序如FB Messenger有这种行为,但我想知道,它有某种解决方法吗?
解决方法
在您的UITabBarController中,设置isTranslucent = false