Skip to content

Commit

Permalink
Delete unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
devSC committed Oct 7, 2015
1 parent 9baad08 commit 35d838b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
3 changes: 0 additions & 3 deletions Demo/WSProgressHUD/WSProgressHUD.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ typedef NS_ENUM(NSInteger, WSProgressHUDIndicatorStyle) {
+ (void)setSecondProrityIndicatorStyle: (WSProgressHUDIndicatorStyle)style; //Default is small SmallLight

+ (void)setProgressHUDFont: (UIFont *)font;
+ (void)setIndicatorColor: (UIColor *)color;

/*----------------------Show On the view------------------------------*/

Expand Down Expand Up @@ -113,7 +112,5 @@ typedef NS_ENUM(NSInteger, WSProgressHUDIndicatorStyle) {
- (void)setSecondProrityIndicatorStyle: (WSProgressHUDIndicatorStyle)style; //Default is small SmallLight

- (void)setProgressHUDFont: (UIFont *)font;
- (void)setIndicatorColor: (UIColor *)color;


@end
14 changes: 5 additions & 9 deletions Demo/WSProgressHUDDemo/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ - (void)didReceiveMemoryWarning {
}
- (IBAction)show:(id)sender {

// [WSProgressHUD setProgressHUDIndicatorStyle:WSProgressHUDIndicatorGray];
[WSProgressHUD setProgressHUDIndicatorStyle:WSProgressHUDIndicatorBigGray];
[WSProgressHUD show];

[self autoDismiss];
}

Expand All @@ -58,12 +56,15 @@ - (IBAction)showShimmeringString:(id)sender {
[self autoDismiss];
}
- (IBAction)showWithString:(id)sender {
[WSProgressHUD showWithStatus:@"Loading..." maskType:WSProgressHUDMaskTypeBlack maskWithout:WSProgressHUDMaskWithoutTabbar];
[WSProgressHUD showWithStatus:@"Loading..." maskType:WSProgressHUDMaskTypeBlack];
[self autoDismiss];

}
- (IBAction)showProgress:(id)sender {
[self performSelector:@selector(increaseProgress) withObject:nil afterDelay:0.3f];
}


static float progress = 0.0f;

- (void)increaseProgress {
Expand All @@ -81,12 +82,7 @@ - (void)increaseProgress {

- (IBAction)showImage:(id)sender {

[WSProgressHUD showWithMaskType:WSProgressHUDMaskTypeBlack];
[self autoDismiss];

// [WSProgressHUD setProgressHUDFont:[UIFont systemFontOfSize:18]];

// [WSProgressHUD showSuccessWithStatus:@"I was not delivered unto this world in defeat, nor does failure course in my veins. I am not a sheep waiting to be prodded by my shepherd. I am a lion and I refuse to talk, to walk, to sleep with the sheep. I will hear not those who weep and complain, for their disease is contagious. Let them join the sheep. The slaughterhouse of failure is not my destiny."];
[WSProgressHUD showSuccessWithStatus:@"I was not delivered unto this world in defeat, nor does failure course in my veins. I am not a sheep waiting to be prodded by my shepherd. I am a lion and I refuse to talk, to walk, to sleep with the sheep. I will hear not those who weep and complain, for their disease is contagious. Let them join the sheep. The slaughterhouse of failure is not my destiny."];

}
- (IBAction)showString:(id)sender {
Expand Down
3 changes: 0 additions & 3 deletions WSProgressHUD/WSProgressHUD.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ typedef NS_ENUM(NSInteger, WSProgressHUDIndicatorStyle) {
+ (void)setSecondProrityIndicatorStyle: (WSProgressHUDIndicatorStyle)style; //Default is small SmallLight

+ (void)setProgressHUDFont: (UIFont *)font;
+ (void)setIndicatorColor: (UIColor *)color;

/*----------------------Show On the view------------------------------*/

Expand Down Expand Up @@ -113,7 +112,5 @@ typedef NS_ENUM(NSInteger, WSProgressHUDIndicatorStyle) {
- (void)setSecondProrityIndicatorStyle: (WSProgressHUDIndicatorStyle)style; //Default is small SmallLight

- (void)setProgressHUDFont: (UIFont *)font;
- (void)setIndicatorColor: (UIColor *)color;


@end

0 comments on commit 35d838b

Please sign in to comment.