Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESTabBarController 设置之后,默认没有itme高亮 #275

Open
mzx-699 opened this issue Jul 31, 2022 · 1 comment
Open

ESTabBarController 设置之后,默认没有itme高亮 #275

mzx-699 opened this issue Jul 31, 2022 · 1 comment

Comments

@mzx-699
Copy link

mzx-699 commented Jul 31, 2022

  • 设置了两个,但是没有一个高亮
func addChildViewController() {
    addChildViewController(vc: OverallViewController(), title: "天气预报", imageName: "weather")
    addChildViewController(vc: WeatherDetailViewController(), title: "当日情况", imageName: "detail")
    
    
}

func addChildViewController(vc: UIViewController, title: String, imageName: String) {
    //设置标题---由内至外设置的
    //设置图像
    //导航控制器
    vc.tabBarItem = ESTabBarItem(ESBouncesContentView(), title: title, image: UIImage(named: imageName), selectedImage: UIImage(named: imageName + "_sel"))
    let nav = ESNavigationController(rootViewController: vc)
    self.addChild(nav)
}
@cnjsyyb
Copy link

cnjsyyb commented Jul 4, 2024

it's bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants