iOS7发布时没有颜色

iOS7发布时没有颜色,ios7,launch,navigationbar,tintcolor,Ios7,Launch,Navigationbar,Tintcolor,当我打开我的应用程序时,在io7的新动画中,导航栏是透明的黑色,没有我为barTintColor选择的颜色,直到应用程序加载为止。为什么会这样 发生这种情况是因为self.navigationController.navigationBar.transparent是YES。将其设置为NO修复了该问题。它还改变了barTintColor的颜色,我必须进行相应的调整,仅供参考。在ios7中,我使用以下代码设置颜色,它对我有效: UIColor *NavBarTintColor = [UIColor

当我打开我的应用程序时,在io7的新动画中,导航栏是透明的黑色,没有我为barTintColor选择的颜色,直到应用程序加载为止。为什么会这样


发生这种情况是因为
self.navigationController.navigationBar.transparent
YES
。将其设置为
NO
修复了该问题。它还改变了barTintColor的颜色,我必须进行相应的调整,仅供参考。在ios7中,我使用以下代码设置颜色,它对我有效:

UIColor *NavBarTintColor = [UIColor colorWithRed:0.223 green:0.223 blue:0.223 alpha:1.000];
    [self.navigationController.navigationBar setTintColor:[UIColor lightGrayColor]];

    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"Image.png"] forBarMetrics:UIBarMetricsDefault];
myNav.navigationBar.barTintColor = [UIColor redColor];