Skip to content

Commit

Permalink
Fix show success image issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
devSC committed Jan 17, 2016
1 parent 35d838b commit cc3a77c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Demo/WSProgressHUD/WSProgressHUD.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,29 +140,32 @@ + (void)showWithStatus: (NSString *)string maskType: (WSProgressHUDMaskType)mask

+ (void)showSuccessWithStatus: (NSString *)string
{
[[self shareInstance] addOverlayViewToWindow];
[self showImage:WSProgressHUDSuccessImage status:string];
}

+ (void)showErrorWithStatus: (NSString *)string
{
[[self shareInstance] addOverlayViewToWindow];
[self showImage:WSProgressHUDErrorImage status:string];
}


+ (void)showImage:(UIImage *)image status:(NSString *)title
{
[[self shareInstance] addOverlayViewToWindow];
[self showImage:image status:title maskType:WSProgressHUDMaskTypeDefault];
}

+ (void)showImage:(UIImage *)image status:(NSString *)title maskType: (WSProgressHUDMaskType)maskType
{
[[self shareInstance] addOverlayViewToWindow];
[self showImage:image status:title maskType:maskType maskWithout:WSProgressHUDMaskWithoutDefault];
}


+ (void)showImage:(UIImage *)image status:(NSString *)title maskType: (WSProgressHUDMaskType)maskType maskWithout: (WSProgressHUDMaskWithoutType)withoutType
{
[[self shareInstance] addOverlayViewToWindow];
[[self shareInstance] showImage:image status:title maskType:maskType maskWithout:withoutType];
}

Expand Down

0 comments on commit cc3a77c

Please sign in to comment.