UIScrollView+SPSBAutoLoadData.h 668 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // UIScrollView+SPSBAutoLoadData.h
  3. // 我的社保
  4. //
  5. // Created by shanp on 2021/4/21.
  6. //
  7. #import <UIKit/UIKit.h>
  8. typedef NS_ENUM(NSInteger, UIScrollViewScrollDirection) {
  9. UIScrollViewScrollDirectionVertical,
  10. UIScrollViewScrollDirectionHorizontal
  11. };
  12. NS_ASSUME_NONNULL_BEGIN
  13. typedef void (^SPSBAutoLoadAction)(void);
  14. @interface UIScrollView (SPSBAutoLoadData)
  15. @property (nonatomic, assign) UIScrollViewScrollDirection spsb_direction;//Default UIScrollViewScrollDirectionVertical
  16. @property (nonatomic, assign) bool spsb_canLoadData;
  17. - (void)setAutoLoadDataWithAction:(SPSBAutoLoadAction)action;
  18. - (void)endAutoLoadData;
  19. @end
  20. NS_ASSUME_NONNULL_END