Skip to content

Commit

Permalink
Update DLProgressHud.m
Browse files Browse the repository at this point in the history
  • Loading branch information
darling0825 authored May 13, 2017
1 parent 1811723 commit 957c7e7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions DLPhotoPicker/Categories/DLProgressHud.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@
@implementation DLProgressHud
+ (void)showActivity {
[SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom];
[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];
[SVProgressHUD setForegroundColor:[UIColor lightGrayColor]];
[SVProgressHUD setBackgroundColor:[UIColor clearColor]];
[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeNone];
[SVProgressHUD setDefaultAnimationType:SVProgressHUDAnimationTypeNative];
[SVProgressHUD show];
}

+ (void)showSuccessStatus:(NSString *)status {
[SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];
[SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom];
[SVProgressHUD setForegroundColor:[UIColor grayColor]];
[SVProgressHUD setBackgroundColor:[UIColor clearColor]];
[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeNone];
[SVProgressHUD showSuccessWithStatus:status];
}

Expand Down

0 comments on commit 957c7e7

Please sign in to comment.