Use the selectedIndex property on the UITabBarController. More information can be found in the UITabBarController Class Reference.
controller.selectedIndex = 4;
or use
[controller setSelectedIndex:4];
Use the selectedIndex property on the UITabBarController. More information can be found in the UITabBarController Class Reference.
controller.selectedIndex = 4;
or use
[controller setSelectedIndex:4];