I am adding a viewController to a TabBarController. When I add a ViewController from the custom class and Nib, it''s icon does not show up in the tabBar.
If I initialize like this the icon does not show up.
viewController = [[FlashCardViewController alloc] initWithNibName:@"FlashCardViewController" bundle:[NSBundle mainBundle]];
But creating a generic viewController works.
viewController = [[UIViewController alloc] initWithNibName:nil bundle:nil];
Here we add the image and title.
viewController.title = @"Quiz";
viewController.tabBarItem.image = [UIImage imageNamed:@"magnifying-glass.png"];
How can I get the icon to display if load from a NIB?