hi,
I have a weird behavior with tab bar items.
I have 2 items in the tab bar. when the app is launched, the 1st one's image is visible but not the title. while the second is completely visible. when clicked the 2nd's text disappears.
any idea please ? here is my code :
Code:
ArticlesViewController *articlesViewController = [[ArticlesViewController alloc] initWithNibName:@"ArticlesViewController" bundle:[NSBundle mainBundle]];
WebTVViewController *videosViewController = [[WebTVViewController alloc] initWithNibName:@"WebTVViewController" bundle:[NSBundle mainBundle]];
UINavigationController *articlesNavController = [[UINavigationController alloc] initWithRootViewController:articlesViewController];
UINavigationController *videosNavController = [[UINavigationController alloc] initWithRootViewController:videosViewController] ;
// tab bar items
UITabBarItem *itemArticles = [[UITabBarItem alloc] initWithTitle:@"Top News" image:[UIImage imageNamed:@"v2-tabbar-une.png"] tag:1];
articlesNavController.tabBarItem = itemArticles;
[itemArticles release];
UITabBarItem *itemWebTV = [[UITabBarItem alloc] initWithTitle:@"Web TV" image:[UIImage imageNamed:@"v2-tabbar-webtv.png"] tag:1];
videosViewController.tabBarItem = itemWebTV;
[itemWebTV release];
tabBarController.viewControllers = [NSArray arrayWithObjects:articlesNavController, videosNavController, nil];
[articlesNavController release];
[videosNavController release];
[articlesViewController release];
[videosViewController release];
I have attached 2 screenshots to see this behavior.