开发者

tab bar controller tab missing title

开发者 https://www.devze.com 2023-03-23 17:38 出处:网络
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 ever

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

精彩评论

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

关注公众号