// LYTabBarController.m
// Created by younglee on **/**/**
// Copyright (c) **** younglee. All rights reserved.
#import "LYTabBarController.h"
@implementation LYTabBarController
- (void) viewDidLoad {
[super viewDidLoad];
NSMutableDictionary *normalAttrs = [NSMutableDictionary dictionary];
normalAttrs[NSFontAttributeName] = [UIFont systemFontOfSize:12];
normalAttrs[NSForegroundColorAttributeName] = [UIColor grayColor];
NSMutableDictionary *selectedAttrs = [NSMutableDictionary dictionary];
selectedAttrs[NSFontAttributeName] = [NSFont systemFontOfSize:12];
selectedAttrs[NSForegroundColorAttributeName] = [UIColor darkGrayColor];
[[UITabBarItem appearance] setTitleAttributes:normalAttrs forState:UIControlStateNormal];
[[UITabBarItem appearance] setTitleAttributes:SelectedAttrs forState:UIControlStateSelected];
}
@end
网友评论