使用UIBarItem的这个函数:
/* You may specify the font, text color, text shadow color, and text shadow offset for the title in the text attributes dictionary, using the keys found in UIStringDrawing.h. */
- (void)setTitleTextAttributes:(NSDictionary *)attributes forState:(UIControlState)state NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR;
其中作为attributes的字典参数,要获取有哪些可以的话可以参照下面这句。 [self.tabBarItem setTitleTextAttributes:@{ UITextAttributeTextColor : [UIColor whiteColor] } forState:UIControlStateNormal]; 这里是修改颜色的,你可以用UITextAttributeFont来修改字体。