Skip to content

Commit 35d838b

Browse files
committed
Delete unused method
1 parent 9baad08 commit 35d838b

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

Demo/WSProgressHUD/WSProgressHUD.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ typedef NS_ENUM(NSInteger, WSProgressHUDIndicatorStyle) {
7373
+ (void)setSecondProrityIndicatorStyle: (WSProgressHUDIndicatorStyle)style; //Default is small SmallLight
7474

7575
+ (void)setProgressHUDFont: (UIFont *)font;
76-
+ (void)setIndicatorColor: (UIColor *)color;
7776

7877
/*----------------------Show On the view------------------------------*/
7978

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

115114
- (void)setProgressHUDFont: (UIFont *)font;
116-
- (void)setIndicatorColor: (UIColor *)color;
117-
118115

119116
@end

Demo/WSProgressHUDDemo/ViewController.m

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,8 @@ - (void)didReceiveMemoryWarning {
4444
}
4545
- (IBAction)show:(id)sender {
4646

47-
// [WSProgressHUD setProgressHUDIndicatorStyle:WSProgressHUDIndicatorGray];
4847
[WSProgressHUD setProgressHUDIndicatorStyle:WSProgressHUDIndicatorBigGray];
4948
[WSProgressHUD show];
50-
5149
[self autoDismiss];
5250
}
5351

@@ -58,12 +56,15 @@ - (IBAction)showShimmeringString:(id)sender {
5856
[self autoDismiss];
5957
}
6058
- (IBAction)showWithString:(id)sender {
61-
[WSProgressHUD showWithStatus:@"Loading..." maskType:WSProgressHUDMaskTypeBlack maskWithout:WSProgressHUDMaskWithoutTabbar];
59+
[WSProgressHUD showWithStatus:@"Loading..." maskType:WSProgressHUDMaskTypeBlack];
60+
[self autoDismiss];
6261

6362
}
6463
- (IBAction)showProgress:(id)sender {
6564
[self performSelector:@selector(increaseProgress) withObject:nil afterDelay:0.3f];
6665
}
66+
67+
6768
static float progress = 0.0f;
6869

6970
- (void)increaseProgress {
@@ -81,12 +82,7 @@ - (void)increaseProgress {
8182

8283
- (IBAction)showImage:(id)sender {
8384

84-
[WSProgressHUD showWithMaskType:WSProgressHUDMaskTypeBlack];
85-
[self autoDismiss];
86-
87-
// [WSProgressHUD setProgressHUDFont:[UIFont systemFontOfSize:18]];
88-
89-
// [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."];
85+
[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."];
9086

9187
}
9288
- (IBAction)showString:(id)sender {

WSProgressHUD/WSProgressHUD.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ typedef NS_ENUM(NSInteger, WSProgressHUDIndicatorStyle) {
7373
+ (void)setSecondProrityIndicatorStyle: (WSProgressHUDIndicatorStyle)style; //Default is small SmallLight
7474

7575
+ (void)setProgressHUDFont: (UIFont *)font;
76-
+ (void)setIndicatorColor: (UIColor *)color;
7776

7877
/*----------------------Show On the view------------------------------*/
7978

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

115114
- (void)setProgressHUDFont: (UIFont *)font;
116-
- (void)setIndicatorColor: (UIColor *)color;
117-
118115

119116
@end

0 commit comments

Comments
 (0)