Open mzx-699 opened 2 years ago
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) }
it's bug
}
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) }