Skip to content

Commit 60d0ed8

Browse files
author
Wilson Yuan
committed
Update demo.
1 parent 24a36b1 commit 60d0ed8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Demo/WSProgressHUD/WSProgressHUD.m

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

141141
+ (void)showSuccessWithStatus: (NSString *)string
142142
{
143-
[[self shareInstance] addOverlayViewToWindow];
144143
[self showImage:WSProgressHUDSuccessImage status:string];
145144
}
146145

147146
+ (void)showErrorWithStatus: (NSString *)string
148147
{
149-
[[self shareInstance] addOverlayViewToWindow];
150148
[self showImage:WSProgressHUDErrorImage status:string];
151149
}
152150

153151

154152
+ (void)showImage:(UIImage *)image status:(NSString *)title
155153
{
156-
[[self shareInstance] addOverlayViewToWindow];
157154
[self showImage:image status:title maskType:WSProgressHUDMaskTypeDefault];
158155
}
159156

160157
+ (void)showImage:(UIImage *)image status:(NSString *)title maskType: (WSProgressHUDMaskType)maskType
161158
{
162-
[[self shareInstance] addOverlayViewToWindow];
163159
[self showImage:image status:title maskType:maskType maskWithout:WSProgressHUDMaskWithoutDefault];
164160
}
165161

166162

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

0 commit comments

Comments
 (0)