Reputation: 2759
I was wonder how you would go about changing the selected tab of a UITabBar via code?
and yes I know this thread is a copy of: Objective C: How to switch from one Tab bar to another via program but that solution didn't work.
Thanks!
-Shredder2794
Upvotes: 0
Views: 198
Reputation: 42163
Does this work for your case?
[tabBar setSelectedItem:[[tabBar items] objectAtIndex:index]];
or
[tabBarController setSelectedIndex:index];
Upvotes: 1