From cc3a77c2404892bfd1d7fb04c6d11a928523fc5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E4=BB=95=E5=B4=87?= Date: Sun, 17 Jan 2016 14:39:36 +0800 Subject: [PATCH] Fix show success image issue. --- Demo/WSProgressHUD/WSProgressHUD.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Demo/WSProgressHUD/WSProgressHUD.m b/Demo/WSProgressHUD/WSProgressHUD.m index fde4791..27064ee 100644 --- a/Demo/WSProgressHUD/WSProgressHUD.m +++ b/Demo/WSProgressHUD/WSProgressHUD.m @@ -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]; }