首页 > 代码库 > ios7设置UITabbarItem的样式

ios7设置UITabbarItem的样式

ios7设置UITabbarItem的样式

by 伍雪颖

[self.tabBar setTitleTextAttributes:@{ 
	NSForegroundColorAttributeName : [UIColor grayColor],
	NSFontAttributeName:[UIFont fontWithName:@"Marion-Italic" size:14.0]}            
	forState:UIControlStateNormal];
[self.tabBar setTitleTextAttributes:@{ 
	NSForegroundColorAttributeName : GREENCOLOR,
	NSFontAttributeName:[UIFont fontWithName:@"Marion-Italic" size:14.0]}            
	forState:UIControlStateSelected];


ios7设置UITabbarItem的样式