فهرست منبع

1.修改UWA HangTag在登陆后才显示。

Pen Li 7 سال پیش
والد
کامیت
823113d996
1فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 5 4
      RedAnt ERP Mobile/common/Functions/modelDetail/DetailViewController.m

+ 5 - 4
RedAnt ERP Mobile/common/Functions/modelDetail/DetailViewController.m

@@ -447,11 +447,12 @@ self.isrefreshing=false;
     
     self.navigationItem.leftBarButtonItem = backButton;
     
-//    AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
     
 #ifdef BUILD_UWAVER
-    
-//    if (appDelegate.bLogin) {
+
+    AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
+
+    if (appDelegate.bLogin) {
 //        UIBarButtonItem *hangTagItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks target:self action:@selector(hanTagBtnClick:)];
         
         UIBarButtonItem *hangTagItem = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"btn_print_order"] imageWithRenderingMode:UIImageRenderingModeAutomatic]
@@ -461,7 +462,7 @@ self.isrefreshing=false;
         
         
         self.navigationItem.rightBarButtonItem = hangTagItem;
-//    }
+    }
 #endif
     
 }