I am developing an application based on UITabbar and the view hierarchy as follows.
UITabBarController ----> UINavigationController ----> UIViewController
I need
You are doing it wrong.
I've an app same as yours. I can access tabbar from viewDidLoad.
viewDidLoad
Try this:
- (void)viewDidLoad { [super viewDidLoad]; [self.tabBarController setSelectedIndex:1]; }
Hope this helps.. :)