Skip to content

Commit

Permalink
Rename "withDuration" to "duration".
Browse files Browse the repository at this point in the history
  • Loading branch information
samvermette committed Feb 29, 2012
1 parent 517b792 commit 866b02a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions SVProgressHUD/SVProgressHUD.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions SVProgressHUD/SVProgressHUD.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 866b02a

Please sign in to comment.