Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename "withDuration" to "duration".

  • Loading branch information...
commit 866b02af391b8fd625fdf6ccd61de3ea06d64063 1 parent 517b792
@samvermette samvermette authored
Showing with 6 additions and 6 deletions.
  1. +2 −2 SVProgressHUD/SVProgressHUD.h
  2. +4 −4 SVProgressHUD/SVProgressHUD.m
View
4 SVProgressHUD/SVProgressHUD.h
@@ -33,9 +33,9 @@ typedef NSUInteger SVProgressHUDMaskType;
+ (void)showWithMaskType:(SVProgressHUDMaskType)maskType networkIndicator:(BOOL)show;
+ (void)showSuccessWithStatus:(NSString*)string;
-+ (void)showSuccessWithStatus:(NSString *)string withDuration:(NSTimeInterval)duration;
++ (void)showSuccessWithStatus:(NSString *)string duration:(NSTimeInterval)duration;
+ (void)showErrorWithStatus:(NSString *)string;
-+ (void)showErrorWithStatus:(NSString *)string withDuration:(NSTimeInterval)duration;
++ (void)showErrorWithStatus:(NSString *)string duration:(NSTimeInterval)duration;
+ (void)setStatus:(NSString*)string; // change the HUD loading status while it's showing
View
8 SVProgressHUD/SVProgressHUD.m
@@ -107,19 +107,19 @@ + (void)showWithStatus:(NSString*)status maskType:(SVProgressHUDMaskType)maskTyp
}
+ (void)showSuccessWithStatus:(NSString *)string {
- [SVProgressHUD showSuccessWithStatus:string withDuration:1];
+ [SVProgressHUD showSuccessWithStatus:string duration:1];
}
-+ (void)showSuccessWithStatus:(NSString *)string withDuration:(NSTimeInterval)duration {
++ (void)showSuccessWithStatus:(NSString *)string duration:(NSTimeInterval)duration {
[SVProgressHUD show];
[SVProgressHUD dismissWithSuccess:string afterDelay:duration];
}
+ (void)showErrorWithStatus:(NSString *)string {
- [SVProgressHUD showErrorWithStatus:string withDuration:1];
+ [SVProgressHUD showErrorWithStatus:string duration:1];
}
-+ (void)showErrorWithStatus:(NSString *)string withDuration:(NSTimeInterval)duration {
++ (void)showErrorWithStatus:(NSString *)string duration:(NSTimeInterval)duration {
[SVProgressHUD show];
[SVProgressHUD dismissWithError:string afterDelay:duration];
}
Please sign in to comment.
Something went wrong with that request. Please try again.