I have a RootViewController that has some UITabBarController properties:
@interface RootViewController : UIViewController<LoginViewDelegate, UITabBarControllerDelegate> {
UIBarButtonItem* loginButton;
NSUserDefaults* prefs;
UITabBarController* arTabBarController;
UITabBarController* stvTabBarController;
UITabBarController* stTabBarController;
BOOL tabBarSaved;
}
@property(nonatomic,retain) UIBarButtonItem* loginButton;
@property(nonatomic,retain) UITabBarController* arTabBarController;
@property(nonatomic,retain) UITabBarController* stvTabBarController;
@property(nonatomic,retain) UITabBarController* stTabBarController;
@property(assign) BOOL tabBarSaved;
I would like to be able to access these tabbarcontrollers from another class.
How can I use UIApplication in another class to access the UITabBarControllers and switch tabs?