From a button inside first viewcontroller of UItabbarcontroller, I want to switch tabbar controller index programatically to a second tab index.i have used following code ot do this
Code:
self.tabBarController.selectedViewController = [self.tabBarController.viewControllers objectAtIndex:1];
I also want to change the text of UILabel, which is within xib of second viewcontroller. How can I do that?
When I access the selectedViewController's IBOutlet there are all null.