I'm having trouble changing the index of my UITabBar. I am attempting to change it from the UITabBarController subclass. This is what I'm trying:
[self.tabBarController setSelectedIndex:1];
This is what my .h looks like
#import <UIKit/UIKit.h>
@interface CustomTab : UITabBarController <UITabBarControllerDelegate>{
IBOutlet CustomTab *bar;
}
@end
I am trying to set the index with an IBAction, the method is being called, but the index doesn't change. Any ideas?