Ver código fonte

勾选一个分享记录进行删除成功后,删除记录和取消分享按钮高亮,未勾选时,可进行删除和取消

huangxiaodong 1 ano atrás
pai
commit
aa79d2b3c8

+ 4 - 0
创维盒子/双子星云手机/Class/Set/previewFile/shareRecordViewController.m

@@ -507,6 +507,8 @@
         SuperModel *model = [[SuperModel alloc] initWithDictionary:responseObject error:nil];
         if(model && model.code == 0){
             [[iToast makeText:NSLocalizedString(@"cancel_share_suc_msg",nil)] show];
+            [weakSelf.didSelectArr removeAllObjects];
+            [weakSelf setBottomStateFun];
             [weakSelf getShareFileListFun];
         }
         else{
@@ -573,6 +575,8 @@
         SuperModel *model = [[SuperModel alloc] initWithDictionary:responseObject error:nil];
         if(model && model.code == 0){
             [[iToast makeText:NSLocalizedString(@"delete_share_suc_msg",nil)] show];
+            [weakSelf.didSelectArr removeAllObjects];
+            [weakSelf setBottomStateFun];
             [weakSelf getShareFileListFun];
         }
         else{