首页 > 其他 > 详细

UITabbar的常用属性

时间:2015-11-15 16:18:47      阅读:251      评论:0      收藏:0      [点我收藏+]
//    //设置tabbar的背景颜色
//   [self.tabBar setBarTintColor:[UIColor redColor]];
//    //设置选中时图片和文字的颜色
//    [self.tabBar setTintColor:[UIColor orangeColor]];
//    //取消tabbar的半透明效果
//    self.tabBar.translucent = false;
    //设置文本属性
//    [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
//                                                       [UIColor redColor], NSForegroundColorAttributeName,
//                                                       nil] forState:UIControlStateSelected];

自定义选中时的图片

//    viewcontroller.tabBarItem.selectedImage =  [viewcontroller.tabBarItem.selectedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    

 

UITabbar的常用属性

原文:http://www.cnblogs.com/cnman/p/4966688.html

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