首页 > 其他 > 详细

tabbar

时间:2014-11-13 18:17:56      阅读:288      评论:0      收藏:0      [点我收藏+]

 

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背景颜色

 

tabbar

原文:http://www.cnblogs.com/dqxu/p/4095416.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!