2
0
Эх сурвалжийг харах

Replace deprecated attributes method (#1375)

Frank 6 жил өмнө
parent
commit
1b5b808ff0

+ 1 - 1
MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.h

@@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
 @property (weak, nonatomic, readonly) UIActivityIndicatorView *loadingView;
 
 /** 菊花的样式 */
-@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle __attribute__((deprecated("first deprecated in 3.2.2 - Use `loadingView` property")));
+@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle MJRefreshDeprecated("first deprecated in 3.2.2 - Use `loadingView` property");
 @end
 
 

+ 1 - 1
MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.h

@@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
 @property (weak, nonatomic, readonly) UIActivityIndicatorView *loadingView;
 
 /** 菊花的样式 */
-@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle __attribute__((deprecated("first deprecated in 3.2.2 - Use `loadingView` property")));
+@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle MJRefreshDeprecated("first deprecated in 3.2.2 - Use `loadingView` property");
 @end
 
 NS_ASSUME_NONNULL_END

+ 1 - 1
MJRefresh/Custom/Header/MJRefreshNormalHeader.h

@@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
 
 
 /** 菊花的样式 */
-@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle __attribute__((deprecated("first deprecated in 3.2.2 - Use `loadingView` property")));
+@property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle MJRefreshDeprecated("first deprecated in 3.2.2 - Use `loadingView` property");
 @end
 
 NS_ASSUME_NONNULL_END

+ 1 - 1
MJRefresh/MJRefreshConst.h

@@ -14,7 +14,7 @@
 #endif
 
 // 过期提醒
-#define MJRefreshDeprecated(instead) NS_DEPRECATED(2_0, 2_0, 2_0, 2_0, instead)
+#define MJRefreshDeprecated(DESCRIPTION) __attribute__((deprecated(DESCRIPTION)))
 
 // 运行时objc_msgSend
 #define MJRefreshMsgSend(...) ((void (*)(void *, SEL, UIView *))objc_msgSend)(__VA_ARGS__)