|
@@ -168,7 +168,7 @@
|
|
|
if(but.selected){
|
|
|
[self.indexPathsForSelectedItems removeAllObjects];
|
|
|
|
|
|
- [self showNewIndicatorWithCanBack:YES canTouch:NO];
|
|
|
+ [SVProgressHUD show];
|
|
|
|
|
|
for (int i= 0; i<self.assets.count; i++) {
|
|
|
TZAssetModel *model = self.assets[i];
|
|
@@ -515,7 +515,7 @@
|
|
|
|
|
|
if(isLast){
|
|
|
mainBlock(^{
|
|
|
- [self removeNewIndicator];
|
|
|
+ [SVProgressHUD dismiss];
|
|
|
});
|
|
|
}
|
|
|
}];
|
|
@@ -539,18 +539,26 @@
|
|
|
//model.totalBytes = [videoData length];
|
|
|
model.totalBytes = size.longLongValue;
|
|
|
[self setDataToBottomViewFun];
|
|
|
-
|
|
|
- if(isLast){
|
|
|
- mainBlock(^{
|
|
|
- [self removeNewIndicator];
|
|
|
- });
|
|
|
- }
|
|
|
}
|
|
|
+
|
|
|
+ if(isLast){
|
|
|
+ mainBlock(^{
|
|
|
+ [SVProgressHUD dismiss];
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
}];
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ else{
|
|
|
+ if(isLast){
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ [SVProgressHUD dismiss];
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
#pragma mark 同步数据到底部
|