Procházet zdrojové kódy

1.应用的底部 是否有删除按钮的交互逻辑完善

huangxiaodong před 3 měsíci
rodič
revize
8259d69cc1

+ 15 - 7
创维盒子/code/NAS/NasPreviewAPPViewController.m

@@ -39,6 +39,7 @@
     BOOL canShareType;
     
     BOOL isDefaultTabType;//默认云机
+    BOOL isSecondTabType;//点击了未安装应用
 }
 @property (nonatomic, strong) UITableView *tableView;
 
@@ -574,13 +575,15 @@
 {
     self.appInstallTypeV.hidden = !isDefaultTabType;
     
-    if(isDefaultTabType){
+    if(isDefaultTabType && !isSecondTabType){
         _curInstalledAppListMod = _getInstalledAppListMod;
+        self.curEditTypeBottomView.isCanDeleteType = NO;
     }
     else{
         _curInstalledAppListMod = _getUninstalledAppListMod;
+        self.curEditTypeBottomView.isCanDeleteType = YES;
     }
-    
+        
     [self.tableView  reloadData];
     
     [self.tableView  mas_remakeConstraints:^(MASConstraintMaker *make) {
@@ -1192,15 +1195,20 @@
 - (void)didClickHeadTabButtonFun:(NSInteger)tag
 {
     if(tag == 1){
-        _curInstalledAppListMod = _getInstalledAppListMod;
-        self.curEditTypeBottomView.isCanDeleteType = NO;
+//        _curInstalledAppListMod = _getInstalledAppListMod;
+//        self.curEditTypeBottomView.isCanDeleteType = NO;
+        
+        isSecondTabType = NO;
     }
     else{
-        _curInstalledAppListMod = _getUninstalledAppListMod;
-        self.curEditTypeBottomView.isCanDeleteType = YES;
+//        _curInstalledAppListMod = _getUninstalledAppListMod;
+//        self.curEditTypeBottomView.isCanDeleteType = YES;
+        isSecondTabType = YES;
     }
     
-    [_tableView reloadData];
+    //[_tableView reloadData];
+    
+    [self RefreshAllUIFun];
 }
 @end