开发者

tab bar controller tab missing title

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"]; 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜