You can use something like
NSArray *array = [tabBarControllerName viewControllers];
This returns an array of all the views in your tabBarController, so if your first view has a class, say TestView, we could do something like
TestView *tv = (TestView *)[array objectAtIndex:0];
Please note that this is not OK, so this may be a bit. Make sure you look at the class reference materials that the apple provides: UITabBarController class reference
EDIT: you really can just single line:
TestView *tv = (TestView *)[[tabBarControllerName viewControllers] objectAtIndex:0];
EDIT2: you can access the UITabBarController if it is declared in your AppDelegate application:
AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; TestView *tv = (TestView *)[[[appDelegate tabBarController] viewControllers] objectAtIndex:0];
source share