iPhone XR iOS 12 UITabBarItem标题重叠在图片顶部

时间:2019-03-04 23:42:38

标签: uitabbar uitabbaritem iphone-xr

As you can see from the picture, the title overlap on top of the picture

此问题仅发生在iPhone XR上,在所有其他iPhone设备上均能正常工作。

enter image description here

我使用了原始的UITabBar组件,而不是自定义的组件

tabBarItem.titlePositionAdjustment.vertical = -10.0
tabBarItem.selectedImage = UIImage(named: imageName)
tabBarItem.title = barTitle
tabBarItem.image = UIImage(named: unSelectedImage)

更新:

  1. 不能在模拟器上再现该问题,只能在物理设备上再现该问题

  2. 有趣的是,它在一个iPhone XR上运行良好,在另一个iPhone XR上存在问题

更新:

  1. 有问题的用户打开“显示缩放”功能

  2. 当用户选择标准显示时效果很好

0 个答案:

没有答案