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