设置的图片颜色是黄色的,显示出来是系统默认的蓝色,需要添加什么语句
var item2 = UITabBarItem()
item2 = self.tabBarItem
item2.selectedImage = UIImage(named: "comm_menu_ico4_hov#2x.png")
换成这个了也没有效果 var item = UITabBarController()
item.tabBarItem = self.tabBarItem
item.tabBar.selectedImageTintColor = UIColor.yellowColor()
item.tabBarItem.selectedImage = UIImage(named: "comm_menu_ico4_hov#2x.png")
item.tabBarItem.selectedImage.imageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)
self.tabBarItem = UITabBarItem(title: "dddd", image: UIImage(named: "btn_1")?.imageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal), selectedImage: UIImage(named: "btn_1_on")?.imageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal))