Explorar o código

1.我的界面
2.工作界面导航栏

time %!s(int64=6) %!d(string=hai) anos
pai
achega
40552e6426

+ 1 - 1
UU_Ent/UU_Ent/Modules/Message/Main/Controllers/YRMsgVC.m

@@ -58,7 +58,7 @@
 
 -(void)setUpUI{
     
-    self.title = @"消息";
+    self.navigationItem.title = @"消息";
     
     [self setNavigationBar];
     

+ 1 - 1
UU_Ent/UU_Ent/Modules/Mine/Main/Controllers/YRMineVC.m

@@ -222,7 +222,7 @@
 -(void)setUpUI
 {
     
-    self.title = @"";
+    self.navigationItem.title = @"";
     
     [self.view addSubview:self.tableView];
     

+ 14 - 2
UU_Ent/UU_Ent/Modules/Work/Main/Controllers/YRWorkVC.m

@@ -30,15 +30,27 @@
 - (void)viewDidLoad {
     [super viewDidLoad];
     // Do any additional setup after loading the view.
-    self.title = @"工作";
+    
 }
 
 -(void)setUpUI{
     
+    self.navigationItem.title = @"工作";
+    
+    if (statusXLately) {
+        
+        [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"U_newNarbgX"] forBarMetrics:UIBarMetricsDefault];
+        
+    }else{
+        
+        [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"U_newNarbg"] forBarMetrics:UIBarMetricsDefault];
+        
+    }
+    
     self.navigationController.navigationBar.hidden = YES;
    
     UIImageView *topView = [[UIImageView alloc]initWithFrame:CGRectMake(0,0, SCREEN_WIDTH, 94)];
-    topView.image = [UIImage imageNamed:@"UU_newNavbg3"];
+    topView.image = [UIImage imageNamed:@"UU_workNewnavbg"];
     topView.backgroundColor = RGB(48, 92, 131, 1);
     topView.userInteractionEnabled = YES;
     

+ 23 - 0
UU_Ent/UU_Ent/Supporting Files/Assets.xcassets/Resources/导航栏/UU_workNewnavbg.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "UU_workNewnavbg@1x.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "UU_workNewnavbg@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "UU_workNewnavbg@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN=BIN
UU_Ent/UU_Ent/Supporting Files/Assets.xcassets/Resources/导航栏/UU_workNewnavbg.imageset/UU_workNewnavbg@1x.png


BIN=BIN
UU_Ent/UU_Ent/Supporting Files/Assets.xcassets/Resources/导航栏/UU_workNewnavbg.imageset/UU_workNewnavbg@2x.png


BIN=BIN
UU_Ent/UU_Ent/Supporting Files/Assets.xcassets/Resources/导航栏/UU_workNewnavbg.imageset/UU_workNewnavbg@3x.png