@@ -35,82 +35,82 @@ typedef NS_ENUM(NSInteger, WSProgressHUDIndicatorStyle) { |
35 | 35 |
|
36 | 36 | /*----------------------Show On the Window------------------------------*/ |
37 | 37 | + (void)show; |
38 | | -+ (void)showWithMaskType: (WSProgressHUDMaskType)maskType; |
39 | | -+ (void)showWithMaskType: (WSProgressHUDMaskType)maskType maskWithout: (WSProgressHUDMaskWithoutType)withoutType; |
| 38 | ++ (void)showWithMaskType:(WSProgressHUDMaskType)maskType; |
| 39 | ++ (void)showWithMaskType:(WSProgressHUDMaskType)maskType maskWithout:(WSProgressHUDMaskWithoutType)withoutType; |
40 | 40 |
|
41 | 41 |
|
42 | | -+ (void)showWithStatus: (NSString *)string; |
43 | | -+ (void)showWithStatus: (NSString *)string maskType: (WSProgressHUDMaskType)maskType; |
44 | | -+ (void)showWithStatus: (NSString *)string maskType: (WSProgressHUDMaskType)maskType maskWithout: (WSProgressHUDMaskWithoutType)withoutType; |
| 42 | ++ (void)showWithStatus:(nullable NSString *)string; |
| 43 | ++ (void)showWithStatus:(nullable NSString *)string maskType:(WSProgressHUDMaskType)maskType; |
| 44 | ++ (void)showWithStatus:(nullable NSString *)string maskType:(WSProgressHUDMaskType)maskType maskWithout:(WSProgressHUDMaskWithoutType)withoutType; |
45 | 45 |
|
46 | 46 |
|
47 | | -+ (void)showShimmeringString: (NSString *)string; |
48 | | -+ (void)showShimmeringString: (NSString *)string maskType: (WSProgressHUDMaskType)maskType; |
49 | | -+ (void)showShimmeringString: (NSString *)string maskType: (WSProgressHUDMaskType)maskType maskWithout: (WSProgressHUDMaskWithoutType)withoutType; |
| 47 | ++ (void)showShimmeringString:(nullable NSString *)string; |
| 48 | ++ (void)showShimmeringString:(nullable NSString *)string maskType:(WSProgressHUDMaskType)maskType; |
| 49 | ++ (void)showShimmeringString:(nullable NSString *)string maskType:(WSProgressHUDMaskType)maskType maskWithout:(WSProgressHUDMaskWithoutType)withoutType; |
50 | 50 |
|
51 | 51 | + (void)showProgress:(CGFloat)progress; |
52 | 52 | + (void)showProgress:(CGFloat)progress maskType:(WSProgressHUDMaskType)maskType; |
53 | | -+ (void)showProgress:(CGFloat)progress maskType:(WSProgressHUDMaskType)maskType maskWithout: (WSProgressHUDMaskWithoutType)withoutType; |
| 53 | ++ (void)showProgress:(CGFloat)progress maskType:(WSProgressHUDMaskType)maskType maskWithout:(WSProgressHUDMaskWithoutType)withoutType; |
54 | 54 |
|
55 | | -+ (void)showProgress:(CGFloat)progress status:(NSString*)string; |
56 | | -+ (void)showProgress:(CGFloat)progress status:(NSString*)string maskType:(WSProgressHUDMaskType)maskType; |
57 | | -+ (void)showProgress:(CGFloat)progress status:(NSString*)string maskType:(WSProgressHUDMaskType)maskType maskWithout: (WSProgressHUDMaskWithoutType)withoutType; |
| 55 | ++ (void)showProgress:(CGFloat)progress status:(nullable NSString *)string; |
| 56 | ++ (void)showProgress:(CGFloat)progress status:(nullable NSString *)string maskType:(WSProgressHUDMaskType)maskType; |
| 57 | ++ (void)showProgress:(CGFloat)progress status:(nullable NSString *)string maskType:(WSProgressHUDMaskType)maskType maskWithout:(WSProgressHUDMaskWithoutType)withoutType; |
58 | 58 |
|
59 | 59 | //imageSize is 28*28 |
60 | | -+ (void)showImage:(UIImage *)image status:(NSString *)title; |
61 | | -+ (void)showImage:(UIImage *)image status:(NSString *)title maskType: (WSProgressHUDMaskType)maskType; |
62 | | -+ (void)showImage:(UIImage *)image status:(NSString *)title maskType: (WSProgressHUDMaskType)maskType maskWithout: (WSProgressHUDMaskWithoutType)withoutType; |
| 60 | ++ (void)showImage:(nullable UIImage *)image status:(nullable NSString *)title; |
| 61 | ++ (void)showImage:(nullable UIImage *)image status:(nullable NSString *)title maskType:(WSProgressHUDMaskType)maskType; |
| 62 | ++ (void)showImage:(nullable UIImage *)image status:(nullable NSString *)title maskType:(WSProgressHUDMaskType)maskType maskWithout:(WSProgressHUDMaskWithoutType)withoutType; |
63 | 63 |
|
64 | | -+ (void)showSuccessWithStatus: (NSString *)string; |
65 | | -+ (void)showErrorWithStatus: (NSString *)string; |
| 64 | ++ (void)showSuccessWithStatus:(nullable NSString *)string; |
| 65 | ++ (void)showErrorWithStatus:(nullable NSString *)string; |
66 | 66 | + (void)dismiss; |
67 | 67 |
|
68 | 68 | /*----------------------------Custom---------------------------------*/ |
69 | 69 |
|
70 | | -+ (void)setProgressHUDIndicatorStyle: (WSProgressHUDIndicatorStyle)style; |
| 70 | ++ (void)setProgressHUDIndicatorStyle:(WSProgressHUDIndicatorStyle)style; |
71 | 71 |
|
72 | 72 | /// if you set WSProgressHUDIndicatorBigGray style you should set second prority indicator Style |
73 | | -+ (void)setSecondProrityIndicatorStyle: (WSProgressHUDIndicatorStyle)style; //Default is small SmallLight |
| 73 | ++ (void)setSecondProrityIndicatorStyle:(WSProgressHUDIndicatorStyle)style; //Default is small SmallLight |
74 | 74 |
|
75 | | -+ (void)setProgressHUDFont: (UIFont *)font; |
| 75 | ++ (void)setProgressHUDFont:(nonnull UIFont *)font; |
76 | 76 |
|
77 | 77 | /*----------------------Show On the view------------------------------*/ |
78 | 78 |
|
79 | | -- (instancetype)initWithView: (UIView *)view; |
80 | | -- (instancetype)initWithFrame:(CGRect)frame; |
| 79 | +- (WSProgressHUD *_Nonnull)initWithView:(nonnull UIView *)view; |
| 80 | +- (WSProgressHUD *_Nonnull)initWithFrame:(CGRect)frame; |
81 | 81 |
|
82 | 82 | - (void)show; |
83 | | -- (void)showWithMaskType: (WSProgressHUDMaskType)maskType; |
| 83 | +- (void)showWithMaskType:(WSProgressHUDMaskType)maskType; |
84 | 84 |
|
85 | | -- (void)showWithString: (NSString *)string; |
86 | | -- (void)showWithString: (NSString *)string maskType: (WSProgressHUDMaskType)maskType; |
| 85 | +- (void)showWithString:(nullable NSString *)string; |
| 86 | +- (void)showWithString:(nullable NSString *)string maskType:(WSProgressHUDMaskType)maskType; |
87 | 87 |
|
88 | 88 |
|
89 | | -- (void)showShimmeringString: (NSString *)string; |
90 | | -- (void)showShimmeringString: (NSString *)string maskType: (WSProgressHUDMaskType)maskType; |
| 89 | +- (void)showShimmeringString:(nullable NSString *)string; |
| 90 | +- (void)showShimmeringString:(nullable NSString *)string maskType:(WSProgressHUDMaskType)maskType; |
91 | 91 |
|
92 | 92 | - (void)showProgress:(CGFloat)progress; |
93 | 93 | - (void)showProgress:(CGFloat)progress maskType:(WSProgressHUDMaskType)maskType; |
94 | 94 |
|
95 | | -- (void)showProgress:(CGFloat)progress status:(NSString*)status; |
96 | | -- (void)showProgress:(CGFloat)progress status:(NSString*)status maskType:(WSProgressHUDMaskType)maskType; |
| 95 | +- (void)showProgress:(CGFloat)progress status:(nullable NSString *)status; |
| 96 | +- (void)showProgress:(CGFloat)progress status:(nullable NSString *)status maskType:(WSProgressHUDMaskType)maskType; |
97 | 97 |
|
98 | 98 |
|
99 | 99 |
|
100 | | -- (void)showImage:(UIImage *)image status:(NSString *)title; |
101 | | -- (void)showImage:(UIImage *)image status:(NSString *)title maskType: (WSProgressHUDMaskType)maskType; |
| 100 | +- (void)showImage:(nullable UIImage *)image status:(nullable NSString *)title; |
| 101 | +- (void)showImage:(nullable UIImage *)image status:(nullable NSString *)title maskType:(WSProgressHUDMaskType)maskType; |
102 | 102 |
|
103 | | -- (void)showSuccessWithString: (NSString *)string; |
104 | | -- (void)showErrorWithString: (NSString *)string; |
| 103 | +- (void)showSuccessWithString:(nullable NSString *)string; |
| 104 | +- (void)showErrorWithString:(nullable NSString *)string; |
105 | 105 |
|
106 | 106 | - (void)dismiss; |
107 | 107 |
|
108 | 108 | /*----------------------------Custom---------------------------------*/ |
109 | | -- (void)setProgressHUDIndicatorStyle: (WSProgressHUDIndicatorStyle)style; |
| 109 | +- (void)setProgressHUDIndicatorStyle:(WSProgressHUDIndicatorStyle)style; |
110 | 110 |
|
111 | 111 | /// if you set WSProgressHUDIndicatorBigGray style you should set second prority indicator Style |
112 | | -- (void)setSecondProrityIndicatorStyle: (WSProgressHUDIndicatorStyle)style; //Default is small SmallLight |
| 112 | +- (void)setSecondProrityIndicatorStyle:(WSProgressHUDIndicatorStyle)style; //Default is small SmallLight |
113 | 113 |
|
114 | | -- (void)setProgressHUDFont: (UIFont *)font; |
| 114 | +- (void)setProgressHUDFont:(nonnull UIFont *)font; |
115 | 115 |
|
116 | 116 | @end |