Iphone 在UITabbar中更改字体颜色

Iphone 在UITabbar中更改字体颜色,iphone,uitabbar,textcolor,Iphone,Uitabbar,Textcolor,如何在iPhone上更改uitabar中的字体颜色 在我的应用程序中,我使用一个自定义选项卡栏,现在我想更改其文本的颜色 这是我的标签栏背景代码 UIView *v = [[UIView alloc] initWithFrame:self.view.frame]; UIImage *i = [UIImage imageNamed:@"1.png"]; UIColor *c = [[UIColor alloc] initWithPatternImage:i]; v.back

如何在iPhone上更改
uitabar
中的字体颜色

在我的应用程序中,我使用一个自定义选项卡栏,现在我想更改其文本的颜色

这是我的标签栏背景代码

UIView *v = [[UIView alloc] initWithFrame:self.view.frame];
    UIImage *i = [UIImage imageNamed:@"1.png"];
    UIColor *c = [[UIColor alloc] initWithPatternImage:i];
    v.backgroundColor = c;
    [c release];
    [[self.tabBarController tabBar] insertSubview:v atIndex:0];
    [v release];

我认为您必须将UITabBarController/UITabBarItem子类化才能实现这一点