Closed jonajgs closed 7 years ago
when is the first time, the more item says "More_TabBarItem", I'm trying to change this, but only works when press edit button, I have this
static func mixtureMoreStyle() -> ESTabBarController { // more options let tabBarController = ESTabBarController() let v1 = RootViewController() let v2 = RootViewController() let v3 = RootViewController() let v4 = RootViewController() let v5 = RootViewController() let v6 = RootViewController() let v7 = RootViewController() let v8 = RootViewController() v1.tabBarItem = UITabBarItem.init(title: "Home", image: UIImage(named: "home"), selectedImage: UIImage(named: "home_1")) v2.tabBarItem = UITabBarItem.init(title: "Find", image: UIImage(named: "find"), selectedImage: UIImage(named: "find_1")) v3.tabBarItem = UITabBarItem.init(title: "Photo", image: UIImage(named: "photo"), selectedImage: UIImage(named: "photo_1")) v4.tabBarItem = UITabBarItem.init(title: "Favor", image: UIImage(named: "favor"), selectedImage: UIImage(named: "favor_1")) v5.tabBarItem = UITabBarItem.init(title: "Me", image: UIImage(named: "me"), selectedImage: UIImage(named: "me_1")) v6.tabBarItem = UITabBarItem.init(title: "Message", image: UIImage(named: "message"), selectedImage: UIImage(named: "message_1")) v7.tabBarItem = UITabBarItem.init(title: "Shop", image: UIImage(named: "shop"), selectedImage: UIImage(named: "shop_1")) v8.tabBarItem = UITabBarItem.init(title: "Cardboard", image: UIImage(named: "cardboard"), selectedImage: UIImage(named: "cardboard_1")) tabBarController.moreNavigationController.title = "more" tabBarController.moreNavigationController.tabBarItem.selectedImage = UIImage(named: "more_1") tabBarController.viewControllers = [v1, v2, v3, v4, v5, v6, v7, v8] tabBarController.tabBar.barTintColor = UIColor.black tabBarController.tabBar.isTranslucent = true tabBarController.tabBar.tintColor = UIColor.white return tabBarController }
now is working
when is the first time, the more item says "More_TabBarItem", I'm trying to change this, but only works when press edit button, I have this