v1.tabBarItem = UITabBarItem.init(title: "首页", image: UIImage(named: "shouye_nor")?.withRenderingMode(.alwaysOriginal), selectedImage: UIImage(named: "shouye_per")?.withRenderingMode(.alwaysOriginal))
v2.tabBarItem =UITabBarItem.init(title: "我的", image: UIImage(named: "wode_nor"), selectedImage: UIImage(named: "wode_per"))
UITabBar.appearance().tintColor = UIColor.orange;
tabBarController.viewControllers = [v1, v2]
网友评论