This is really a strange problem. I have a tab bar controller with 5 tabs. Each tab has its own image and title. I deleted the associated nib file for one of the tabs and created it from scratch. Now everything is fine except that when I run the program, that 开发者_开发知识库particular tab is missing its title and image. All other tabs are fine. Also when I look at the main view nib file shows all tab titles and images.
Any help?
You can set them programmatically,
yourViewController.title = @"Title";
yourViewController.tabBarItem.image = [UIImage imageNamed:@"imageName.png"];
精彩评论