|
|
@@ -14,6 +14,8 @@
|
|
|
#import "UIScrollView+MJRefresh.h"
|
|
|
#import "NSBundle+MJRefresh.h"
|
|
|
|
|
|
+NS_ASSUME_NONNULL_BEGIN
|
|
|
+
|
|
|
/** 刷新控件的状态 */
|
|
|
typedef NS_ENUM(NSInteger, MJRefreshState) {
|
|
|
/** 普通闲置状态 */
|
|
|
@@ -45,7 +47,7 @@ typedef void (^MJRefreshComponentEndRefreshingCompletionBlock)(void);
|
|
|
}
|
|
|
#pragma mark - 刷新回调
|
|
|
/** 正在刷新的回调 */
|
|
|
-@property (copy, nonatomic) MJRefreshComponentRefreshingBlock refreshingBlock;
|
|
|
+@property (copy, nonatomic, nullable) MJRefreshComponentRefreshingBlock refreshingBlock;
|
|
|
/** 设置回调对象和回调方法 */
|
|
|
- (void)setRefreshingTarget:(id)target refreshingAction:(SEL)action;
|
|
|
|
|
|
@@ -61,11 +63,11 @@ typedef void (^MJRefreshComponentEndRefreshingCompletionBlock)(void);
|
|
|
- (void)beginRefreshing;
|
|
|
- (void)beginRefreshingWithCompletionBlock:(void (^)(void))completionBlock;
|
|
|
/** 开始刷新后的回调(进入刷新状态后的回调) */
|
|
|
-@property (copy, nonatomic) MJRefreshComponentBeginRefreshingCompletionBlock beginRefreshingCompletionBlock;
|
|
|
+@property (copy, nonatomic, nullable) MJRefreshComponentBeginRefreshingCompletionBlock beginRefreshingCompletionBlock;
|
|
|
/** 带动画的结束刷新的回调 */
|
|
|
-@property (copy, nonatomic) MJRefreshComponentEndRefreshingCompletionBlock endRefreshingAnimateCompletionBlock;
|
|
|
+@property (copy, nonatomic, nullable) MJRefreshComponentEndRefreshingCompletionBlock endRefreshingAnimateCompletionBlock;
|
|
|
/** 结束刷新的回调 */
|
|
|
-@property (copy, nonatomic) MJRefreshComponentEndRefreshingCompletionBlock endRefreshingCompletionBlock;
|
|
|
+@property (copy, nonatomic, nullable) MJRefreshComponentEndRefreshingCompletionBlock endRefreshingCompletionBlock;
|
|
|
/** 结束刷新状态 */
|
|
|
- (void)endRefreshing;
|
|
|
- (void)endRefreshingWithCompletionBlock:(void (^)(void))completionBlock;
|
|
|
@@ -87,11 +89,11 @@ typedef void (^MJRefreshComponentEndRefreshingCompletionBlock)(void);
|
|
|
/** 摆放子控件frame */
|
|
|
- (void)placeSubviews NS_REQUIRES_SUPER;
|
|
|
/** 当scrollView的contentOffset发生改变的时候调用 */
|
|
|
-- (void)scrollViewContentOffsetDidChange:(NSDictionary *)change NS_REQUIRES_SUPER;
|
|
|
+- (void)scrollViewContentOffsetDidChange:(nullable NSDictionary *)change NS_REQUIRES_SUPER;
|
|
|
/** 当scrollView的contentSize发生改变的时候调用 */
|
|
|
-- (void)scrollViewContentSizeDidChange:(NSDictionary *)change NS_REQUIRES_SUPER;
|
|
|
+- (void)scrollViewContentSizeDidChange:(nullable NSDictionary *)change NS_REQUIRES_SUPER;
|
|
|
/** 当scrollView的拖拽状态发生改变的时候调用 */
|
|
|
-- (void)scrollViewPanStateDidChange:(NSDictionary *)change NS_REQUIRES_SUPER;
|
|
|
+- (void)scrollViewPanStateDidChange:(nullable NSDictionary *)change NS_REQUIRES_SUPER;
|
|
|
|
|
|
|
|
|
#pragma mark - 其他
|
|
|
@@ -107,3 +109,6 @@ typedef void (^MJRefreshComponentEndRefreshingCompletionBlock)(void);
|
|
|
+ (instancetype)mj_label;
|
|
|
- (CGFloat)mj_textWidth;
|
|
|
@end
|
|
|
+
|
|
|
+
|
|
|
+NS_ASSUME_NONNULL_END
|