Swift iPhone 6上选项卡栏上不需要的行

Swift iPhone 6上选项卡栏上不需要的行,swift,ios8,uitabbar,Swift,Ios8,Uitabbar,在iOS 8.1下,我的选项卡栏上显示1px行。这个问题只出现在iPhone 6上。这里有同样的问题。这是我的标签栏的截图 tabBarController?.tabBar.backgroundImage = UIImage(named: "tabbar_shadow.png") tabBarController?.tabBar.backgroundColor = UIColor.clearColor() tabBarController?.tabBar.shadowImage = UIImag

在iOS 8.1下,我的选项卡栏上显示1px行。这个问题只出现在iPhone 6上。这里有同样的问题。这是我的标签栏的截图

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

我在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的线。

您尝试过另一篇文章中的解决方案吗?尤其是
tabBarController?.tabBar.setclipstobunds=true
我使用此代码,但选项卡栏行未隐藏,选项卡栏背景未保留transparent@zisoft我添加了图像URL来解释我的问题。iPhone 6中的这个问题有什么解决方案吗??