How to force UITabBar compact design when in landscape on iPhone X?

久未见 提交于 2019-12-07 21:37:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!