Преглед на файлове

【IOS端】H5分享文件进行下载后,点击全部暂停按钮,无法反应不生效

huangxiaodong преди 1 година
родител
ревизия
d0db4529ff
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      创维盒子/双子星云手机/Class/Set/uploadFile/receiveView/receiveDownloadRecordTableView.m

+ 6 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/receiveView/receiveDownloadRecordTableView.m

@@ -546,10 +546,16 @@
 #pragma mark 点击上传中的全部暂停
 - (void)didClickAllSuspendInLoadingFun
 {
+    //HLog(@"%@\n hhh %d",_downloadingHeadView,_downloadingHeadView.rightButton.selected);
+    
+    _downloadingHeadView.rightButton.selected = !_downloadingHeadView.rightButton.selected;
+    
     if(_downloadingHeadView.rightButton.selected){
+        HLog(@"suspendAllDownloadTask");
         [[SGDownloadManager shareManager] suspendAllDownloadTask];
     }
     else{
+        HLog(@"startAllDownloadTask");
         [[SGDownloadManager shareManager] startAllDownloadTask];
     }
 }