Browse Source

1.下载获取过程添加loading

huangxiaodong 1 year ago
parent
commit
a880c445db

+ 8 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/downLoadFile/downLoadPreviewViewController.m

@@ -566,10 +566,18 @@
     [dict setObject:_defaultDiskPath forKey:@"path"];
     
     [[NSNotificationCenter defaultCenter] postNotificationName:searchFileListBeginNotification object:dict];/*发送通知*/
+    
+    [self showNewIndicatorWithCanBack:YES canTouch:NO];
+    
+//    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(120.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+//        [self removeNewIndicator];
+//    });
 }
 
 - (void)searchFileListDoneFun:(NSNotification*)notification
 {
+    [self removeNewIndicator];
+    
     NSDictionary *dataDict = [notification object];
     
     if(!dataDict || ![dataDict isKindOfClass:[NSDictionary class]]){