今天更新了下Xcode 然后去运行了下项目。发现在iPhone X 以上的设备运行时当页面从二级页面pop到首页时tabbar的文字图片会有一个下移的问题,在iPhone X一下的设备运行的时候页面返回时tabbar的图片文字会短暂消失一下然后才会显示。这就很操蛋了。经过一个多消失的调试发现在AppDelegate或者tabbarcontroller中加入[[UITabBar appearance] setTranslucent:NO];就会解决该问题。
OC: [[UITabBar appearance] setTranslucent:NO];
Swift: tabBar.isTranslucent = false
iOS12.1 UINavigationController + UITabBarController( UITabBar 磨砂),在popViewControllerAnimated 会遇到tabbar布局错乱的问题。