Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am using five tab bar items in the tab bar,i want to custom the text which is displayed on that.Is it possible.Please help me in this.Thanks in advance

Thanks ask

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
209 views
Welcome To Ask or Share your Answers For Others

1 Answer

You need to make a "TabBarItem" in the view controller in each space.

So in the init function for the root view controller of each tab bar item:

UIImage* anImage = [UIImage imageNamed:@"tabicon.png"];

UITabBarItem* theItem = [[UITabBarItem alloc] initWithTitle:@"Your custom text" image:anImage tag:0];

self.tabBarItem = theItem;

[theItem release];

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...