。。。。。。
thirdviewcontroller *THIRDVC = [[ thirdviewcontroller alloc ] initwithtitle : @ " search information " ];
// set the image of Tabbaritem to display the original color;
THIRDVC.Tabbaritem = [[UitabbaritemAlloc]Initwithtitle:@"Search"Image:[[UIImageImagenamed:@ "Login_usernick"] Imagewithrenderingmode:Uiimagerenderingmodealwaysoriginal] SelectedImage:[[UIImageImagenamed:@ "login_usernick_highlighted"] Imagewithrenderingmode:Uiimagerenderingmodealwaysoriginal]];
// A word change the color of the picture and the text is red when selected
[[Uitabbar Appearance]settintcolor:[uicolor Redcolor]];
just set the font color of the Tabbaritem
[[UitabbaritemAppearance] Settitletextattributes:[nsdictionaryDictionarywithobject:[UicolorBlackcolor] Forkey:Nsforegroundcolorattributename] Forstate:UIControlStateNormal];
[[UitabbaritemAppearance] Settitletextattributes:[nsdictionaryDictionarywithobject:[UicolorRedcolor] Forkey:Nsforegroundcolorattributename] Forstate:uicontrolstateselected];
Rootnavgationcontroller *nav3 = [[] Rootnavgationcontrolleralloc initwithrootviewcontroller : THIRDVC];
nsarray *vcs= [nsarray arraywithobjects: nav1,nav2,nav3, nil];
TabControl. viewcontrollers = VCs;
Self. window. Rootviewcontroller = TabControl;
Use System Uitabbaritem to display original colors and custom text colors in a custom picture