iPhone 6上标签栏上的不需要的行

时间:2015-03-20 05:38:53

标签: swift ios8 uitabbar

在iOS 8.1下,我的标签栏上显示1px行。此问题仅出现在iPhone 6上。这里的another post存在同样的问题。这是我的标签栏的屏幕截图。

enter image description here

我在Swift中使用此代码作为标签栏。

tabBarController?.tabBar.backgroundImage = UIImage(named: "tabbar_shadow.png")
tabBarController?.tabBar.backgroundColor = UIColor.clearColor()
tabBarController?.tabBar.shadowImage = UIImage()
tabBarController?.tabBar.translucent = true

这样可以正常工作,但iPhone 6上的标签栏上方显示1px线。

0 个答案:

没有答案