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

How to show bottom TabBar on all pushed VC #258

Open
jis248 opened this issue Sep 18, 2021 · 0 comments
Open

How to show bottom TabBar on all pushed VC #258

jis248 opened this issue Sep 18, 2021 · 0 comments
Labels

Comments

@jis248
Copy link

jis248 commented Sep 18, 2021

This code is on ViewController not on AppDelegate

 let v1 = self.storyboard?.instantiateViewController(withIdentifier: "Temp1ViewController") as! Temp1ViewController
        let v2 = self.storyboard?.instantiateViewController(withIdentifier: "TaskVC") as! TaskVC
        let v3 = self.storyboard?.instantiateViewController(withIdentifier: "Temp1ViewController") as! Temp1ViewController
        let v4 = self.storyboard?.instantiateViewController(withIdentifier: "Temp1ViewController") as! Temp1ViewController
        let v5 = self.storyboard?.instantiateViewController(withIdentifier: "Temp1ViewController") as! Temp1ViewController
        
        
        v1.tabBarItem = ESTabBarItem.init(TabBarContentView(), title: "Home", image: UIImage(named: "home"), selectedImage: UIImage(named: "home2"))
        v2.tabBarItem = ESTabBarItem.init(TabBarContentView(), title: "Screen2", image: UIImage(named: "Screen2"), selectedImage: UIImage(named: "Screen2"))
        v3.tabBarItem = ESTabBarItem.init(TabBarContentView(), title: "Screen3", image: UIImage(named: "Screen3"), selectedImage: UIImage(named: "Screen3"))
        v4.tabBarItem = ESTabBarItem.init(TabBarContentView(), title: "Screen4", image: UIImage(named: "Screen4"), selectedImage: UIImage(named: "Screen4"))
        v5.tabBarItem = ESTabBarItem.init(TabBarContentView(), title: "Screen5", image: UIImage(named: "Screen5"), selectedImage: UIImage(named: "Screen5"))
        
        
        self.delegate = self
        self.viewControllers = [v1,v2,v3,v4,v5]



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

No branches or pull requests

2 participants