Commit 09a3ca0b authored by yuzheng's avatar yuzheng

修复iOS14下拍视频闪退问题

parent 5a7e69db
...@@ -846,8 +846,11 @@ static CGFloat itemMargin = 5; ...@@ -846,8 +846,11 @@ static CGFloat itemMargin = 5;
NSURL *videoUrl = [info objectForKey:UIImagePickerControllerMediaURL]; NSURL *videoUrl = [info objectForKey:UIImagePickerControllerMediaURL];
if (videoUrl) { if (videoUrl) {
[[TZImageManager manager] saveVideoWithUrl:videoUrl location:self.location completion:^(PHAsset *asset, NSError *error) { [[TZImageManager manager] saveVideoWithUrl:videoUrl location:self.location completion:^(PHAsset *asset, NSError *error) {
if (!error) { if (!error && asset) {
[self addPHAsset:asset]; [self addPHAsset:asset];
} else {
TZImagePickerController *tzImagePickerVc = (TZImagePickerController *)self.navigationController;
[tzImagePickerVc hideProgressHUD];
} }
}]; }];
self.location = nil; self.location = nil;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment