浏览代码

nav con: fix iOS 6 appearance

Felix Paul Kühne 11 年之前
父节点
当前提交
64cd4782d5
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Sources/UINavigationController+Theme.m

+ 2 - 1
Sources/UINavigationController+Theme.m

@@ -18,9 +18,10 @@
 {
     UINavigationBar *navBar = self.navigationBar;
     if (!SYSTEM_RUNS_IOS7_OR_LATER) {
-        navBar.tintColor = [UIColor colorWithRed:(242.0f/255.0f) green:(112.0f/255.0f) blue:0.0f alpha:1.f];
+        [navBar setBackgroundImage:[UIImage imageNamed:@"navBarBackground"] forBarMetrics:UIBarMetricsDefault];
         navBar.barStyle = UIBarStyleBlack;
         navBar.translucent = NO;
+        navBar.opaque = YES;
     } else {
         navBar.barTintColor = [UIColor colorWithRed:1.0f green:(132.0f/255.0f) blue:0.0f alpha:1.f];
         navBar.tintColor = [UIColor whiteColor];