|
@@ -796,7 +796,7 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
|
|
|
[KSNetworkingManager downloadFileRequestWithFileUrl:fileUrl progress:^(int64_t bytesRead, int64_t totalBytes) {
|
|
|
// 显示进度
|
|
|
NSInteger progress = (NSInteger)(bytesRead*1.0 / totalBytes) * 100;
|
|
|
- NSString *tipsString = [NSString stringWithFormat:@"文件下载中\n%zd%%",progress];
|
|
|
+ NSString *tipsString = [NSString stringWithFormat:@"下载中 %zd%%",progress];
|
|
|
dispatch_main_async_safe(^{
|
|
|
[LOADING_MANAGER showCustomLoading:tipsString];
|
|
|
});
|
|
@@ -943,7 +943,7 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
|
|
|
}
|
|
|
|
|
|
- (void)saveVideo:(NSURL *)fileUrl {
|
|
|
- [LOADING_MANAGER showCustomLoading:@"视频保存中..."];
|
|
|
+
|
|
|
[[TZImageManager manager] saveVideoWithUrl:fileUrl completion:^(PHAsset *asset, NSError *error) {
|
|
|
if (!error) {
|
|
|
dispatch_main_async_safe(^{
|