Skip to content

Commit cc3a77c

Browse files
committed
Fix show success image issue.
1 parent 35d838b commit cc3a77c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Demo/WSProgressHUD/WSProgressHUD.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,29 +140,32 @@ + (void)showWithStatus: (NSString *)string maskType: (WSProgressHUDMaskType)mask
140140

141141
+ (void)showSuccessWithStatus: (NSString *)string
142142
{
143+
[[self shareInstance] addOverlayViewToWindow];
143144
[self showImage:WSProgressHUDSuccessImage status:string];
144145
}
145146

146147
+ (void)showErrorWithStatus: (NSString *)string
147148
{
149+
[[self shareInstance] addOverlayViewToWindow];
148150
[self showImage:WSProgressHUDErrorImage status:string];
149151
}
150152

151153

152154
+ (void)showImage:(UIImage *)image status:(NSString *)title
153155
{
156+
[[self shareInstance] addOverlayViewToWindow];
154157
[self showImage:image status:title maskType:WSProgressHUDMaskTypeDefault];
155158
}
156159

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

162166

163167
+ (void)showImage:(UIImage *)image status:(NSString *)title maskType: (WSProgressHUDMaskType)maskType maskWithout: (WSProgressHUDMaskWithoutType)withoutType
164168
{
165-
[[self shareInstance] addOverlayViewToWindow];
166169
[[self shareInstance] showImage:image status:title maskType:maskType maskWithout:withoutType];
167170
}
168171

0 commit comments

Comments
 (0)