I created a UITabBarController like the following and pushed a navigationController, but I now cannot set the title of tab bar items etc… as the tabbarcontroller is NULL.
Please can you tell me where I am going wrong.
UITabBarController *tabBarController = [[UITabBarController alloc] init];
LoggedInFeedNavigationController *lvc = [[LoggedInFeedNavigationController alloc] initWithAccount:account];
[tabBarController setViewControllers:[NSArray arrayWithObject:lvc]];
[tabBarController setSelectedIndex:0];
[self presentModalViewController:tabBarController animated:YES];
[tabBarController release];
[lvc release];
In the documentation for tabBarController I see the following
In the comments it says that you are calling self.tabBarController from within the
LoggedInFeedNavigationControllerand I would think it should work properly. But you are displaying the tab bar modally and if the documentation means even if it is inside of UITabBarController as a modal view then that is your problem.