소스 검색

1.下载获取过程添加loading

huangxiaodong 1 년 전
부모
커밋
a880c445db
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      创维盒子/双子星云手机/Class/Set/uploadFile/downLoadFile/downLoadPreviewViewController.m

+ 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]]){