4

I have a tabBarController which have three tabs on Tab 3 i have a ViewController which have further child. But from that Child ViewController of UITabBarController index 3 i want to move at UITabBarController Index 1 how to do that kindly explain.

1 Answers1

4

Just set needed selectedindex for uitabbarviewcontroller. Like

tabBarController?.selectedIndex = 0
Citrael
  • 542
  • 4
  • 17