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.
Asked
Active
Viewed 1,854 times
4

Asim Iftikhar Abbasi
- 547
- 1
- 5
- 16
-
You can set the tabbar controller at index 1 as the root view controller. – Sneha Aug 07 '17 at 05:34
-
from child view controller of index 3 how to move at index 1while child view has not tab bar controller – Asim Iftikhar Abbasi Aug 07 '17 at 05:44
1 Answers
4
Just set needed selectedindex for uitabbarviewcontroller. Like
tabBarController?.selectedIndex = 0

Citrael
- 542
- 4
- 17
-
This solution works for my, if you dont need Observables or notifications – finalpets Nov 28 '19 at 22:54