// // PDHomeScrollView.h // NDPublicLogic // // Created by LStar on 2023/5/16. // #import @class PDHomeScrollView; @protocol PDHomeScrollViewDelegate // 当内容可以滚动时会调用 - (void)homeScrollViewContentCanScroll:(PDHomeScrollView *)scrollView; ///容器的滚动代理 - (void)homeScrollViewDidScroll:(PDHomeScrollView *)scrollView; - (CGFloat)heightForContainerCanScroll; @end @interface PDHomeScrollView : UIScrollView // 设置容器是否可以滚动 @property (nonatomic, assign) BOOL canScroll; @property (nonatomic,weak) id scrollDelegate; ///内容滚动view @property (nonatomic, strong) NSArray * contentViews; @end