いくつかの UITabBarController プロパティを持つ RootViewController があります。
@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;
これらのタブバーコントローラーに別のクラスからアクセスできるようにしたいと考えています。
別のクラスで UIApplication を使用して UITabBarControllers にアクセスし、タブを切り替えるにはどうすればよいですか?