We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a7e69d commit 09a3ca0Copy full SHA for 09a3ca0
1 file changed
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
@@ -846,8 +846,11 @@ - (void)imagePickerController:(UIImagePickerController*)picker didFinishPickingM
846
NSURL *videoUrl = [info objectForKey:UIImagePickerControllerMediaURL];
847
if (videoUrl) {
848
[[TZImageManager manager] saveVideoWithUrl:videoUrl location:self.location completion:^(PHAsset *asset, NSError *error) {
849
- if (!error) {
+ if (!error && asset) {
850
[self addPHAsset:asset];
851
+ } else {
852
+ TZImagePickerController *tzImagePickerVc = (TZImagePickerController *)self.navigationController;
853
+ [tzImagePickerVc hideProgressHUD];
854
}
855
}];
856
self.location = nil;
0 commit comments