无法更改UITabbarcontroller iOS 7的背景颜色

时间:2014-07-08 11:23:16

标签: ios7 uitabbarcontroller uiappearance xcode5.1

我为我的Tabbar创建了UITabbar的子类 这是我的Hierarchy UITabbarController-> UINavigationController-> UIViewController

请看看我到目前为止所做的事情。我正在使用基于窗口的应用程序来处理我的应用程序。

-(void)awakeFromNib
{
// [self setTintColor:[UIColor whiteColor]];
// [self setBarTintColor:[UIColor yellowColor]];
 [self setBarTintColor:[UIColor colorWithRed:123/255.0 green:47/255.0 blue:85/255.0 alpha:1]];
 //[self setTintColor:[UIColor colorWithRed:227/255.0 green:180/255.0 blue:204/255.0 alpha:1]];
//[self setBackgroundColor:[UIColor colorWithRed:0.0/255.0 green:0.0/255.0 blue:0.0/255.0 alpha:0.6]];
[self setTranslucent:NO];
}

请帮帮我怎样才能摆脱它?有任何建议 Please have a Look

0 个答案:

没有答案