设置UITabBarController的背景颜色
2015-01-15 11:43
190 查看
if (IOS7) { self.tabBarController.tabBar.barTintColor = kTAB_BAR_GB_COLOR; }else{ self.tabBarController.tabBar.tintColor = kTAB_BAR_GB_COLOR; [[UITabBar appearance] setBackgroundImage:[ZQUtiles imageWithColor:kTAB_BAR_GB_COLOR size:CGSizeMake(29, 1)]];//设置背景,修改颜色是没有用的 [[UITabBar appearance] setSelectionIndicatorImage:[ZQUtiles imageWithColor:kTAB_BAR_GB_COLOR size:CGSizeMake(29, 1)]]; [[UITabBar appearance] setShadowImage:[ZQUtiles imageWithColor:kDEFAULT_BG_COLOR size:CGSizeMake(29, 1)]];//隐藏那条黑线 [[UITabBarItem appearance] setTitlePositionAdjustment:UIOffsetMake(0, -2)]; }
相关文章推荐
- VC/MFC如何设置对话框背景颜色
- VC/MFC如何设置对话框背景颜色
- 设置对话框背景颜色的方法
- Flex Gumbo中如何通过contentBackgroundColor样式,设置TextInput内文本背景颜色
- VC编程中如何设置对话框的背景颜色和静态文本颜色
- 关于对文档视图结构中视图背景颜色设置的问题
- 转载)保护眼睛,把电脑窗口背景设置成绿颜色
- 如何设置水晶报表的背景颜色
- 怎样设置DBGrid标题行、所选记录行的行高度和行背景颜色,所选列宽度
- js设置调用cookie设置背景颜色 字号、颜色
- TDataGridViewEx组件中设置表格行背景颜色的.NET事件实现技术
- 通过OnCtlColor函数的重载对静态控件进行文本和背景颜色设置
- 给编辑框设置背景颜色和字体颜色
- extjs grid设置某列背景颜色
- VB,mshflexgrid,隔行设置背景颜色
- 可以设置选项背景颜色的DropDownList
- j2me中使用canvas设置背景颜色示例
- VC编程中如何设置对话框的背景颜色和静态文本颜色
- Flex中如何通过backgroundImage, backgroundColor和backgroundAlpha样式,设置VBox的背景图片和背景颜色以及改变透明度
- 关于设置对话框的背景颜色,和设置控件的字体颜色或背景颜色