1234567891011121314151617181920212223242526272829 |
- //
- // UIScrollView+SPSBAutoLoadData.h
- // 我的社保
- //
- // Created by shanp on 2021/4/21.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSInteger, UIScrollViewScrollDirection) {
- UIScrollViewScrollDirectionVertical,
- UIScrollViewScrollDirectionHorizontal
- };
- NS_ASSUME_NONNULL_BEGIN
- typedef void (^SPSBAutoLoadAction)(void);
- @interface UIScrollView (SPSBAutoLoadData)
- @property (nonatomic, assign) UIScrollViewScrollDirection spsb_direction;//Default UIScrollViewScrollDirectionVertical
- @property (nonatomic, assign) bool spsb_canLoadData;
- - (void)setAutoLoadDataWithAction:(SPSBAutoLoadAction)action;
- - (void)endAutoLoadData;
- @end
- NS_ASSUME_NONNULL_END
|