如何自定义标签栏项目文本
答
可以使用IB做的标签栏项目this.click者和命令+ 1去其财产然后再次点击相同的标签栏上的项目,你会得到属性窗口,您可以在其中更改标签栏项目的文本...
答
您需要在每个空间的视图控制器中制作一个“TabBarItem”。
在每个标签栏项目的根视图控制器的初始化函数所以:
UIImage* anImage = [UIImage imageNamed:@"tabicon.png"];
UITabBarItem* theItem = [[UITabBarItem alloc] initWithTitle:@"Your custom text" image:anImage tag:0];
self.tabBarItem = theItem;
[theItem release];
谢谢你,我会试试这个 – ask123 2010-12-20 12:53:50