问题
So, I'm having a problem with the UITabBar on iPhone X. The problem is that the tab bar doesn't adjust the icons when it is in landscape mode, like the UITabBarController.
1 - I've set the safe area settings. 2 - I've put the tab bar inside a UI view.
But this only fixes the tab bar misplacement on iPhone X.
My problem is better described in the image below:
When running on iPhone 8 (anyone but iPhone X) the tab bar works like expected. But when running (the same view, with no changes) on iPhone X, the adjustment simply doesn't happen when in landscape mode. Is there a code that I should explicitly "tell" to the tab bar adjust?
来源:https://stackoverflow.com/questions/49618666/how-to-force-uitabbar-compact-design-when-in-landscape-on-iphone-x