// // UIScrollView+SPSBAutoLoadData.h // 我的社保 // // Created by shanp on 2021/4/21. // #import 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