tabbar

 

tabbar(非自定义) 文字的颜色

     [NSDictionary dictionaryWithObjectsAndKeys: [UIColor redColor], UITextAttributeTextColor, [UIFont fontWithName:@"Arial" size:0.0], UITextAttributeFont,
      
      nil] forState:UIControlStateSelected];
    
    [[UITabBarItem appearance] setTitleTextAttributes:
     
     [NSDictionary dictionaryWithObjectsAndKeys: [UIColor blackColor], UITextAttributeTextColor, [UIFont fontWithName:@"Arial" size:0.0], UITextAttributeFont,
      
      nil] forState:UIControlStateNormal];

 渲染颜色

self.tabBar.selectedImageTintColor = [UIColor yellowColor];
self.tabBar.tintColor = [UIColor yellowColor];
self.tabBar.barTintColor = YWGlobalBG; //tabbar背景颜色

 

posted @ 2014-11-13 17:08  米粥米  阅读(216)  评论(0编辑  收藏  举报