How can i navigate to another tab bar item by a button click in first tab?
ios
Solution
You can call `-setSelectedIndex:` in your button click handler. This would select the 3rd tab.
[tabBarController setSelectedIndex: 2];
Please note that documentation is your friend: UITabBarController Class Reference
In addition you can try this:
[tabBarController setSelectedViewController:(UIViewController *)[tabBarController.viewControllers objectAtIndex: 2]];
Problem
I have a situation to navigate from first tab item to second tab item by a button click in first tab. how can i do that ?