// // CGXVerticalMenuContainerView.h // CGXVerticalMenuView-OC // // Created by CGX on 2018/05/01. // Copyright © 2019 CGX. All rights reserved. // #import #import "CGXVerticalMenuContainerCollectionView.h" NS_ASSUME_NONNULL_BEGIN @class CGXVerticalMenuContainerView; @protocol CGXVerticalMenuContainerViewDataSouce @optional - (NSInteger)numberOfRowsInListContainerView:(CGXVerticalMenuContainerView *)listContainerView; - (UIView *)verticalListContainerView:(CGXVerticalMenuContainerView *)listContainerView listViewInRow:(NSInteger)row; @end @protocol CGXVerticalMenuContainerViewDelegate @optional - (void)verticalListContainerView:(CGXVerticalMenuContainerView *)listContainerView willDisplayCellAtRow:(NSInteger)row; - (void)verticalListContainerView:(CGXVerticalMenuContainerView *)listContainerView didEndDisplayingCellAtRow:(NSInteger)row; @end @interface CGXVerticalMenuContainerView : UIView @property (nonatomic, strong, readonly) CGXVerticalMenuContainerCollectionView *collectionView; @property (nonatomic, weak) id dataSouce; @property (nonatomic, weak) id delegate; // 滚动左侧间距 默认0 @property (nonatomic, assign) CGFloat spaceLeft; // 滚动右侧侧间距 默认0 @property (nonatomic, assign) CGFloat spaceRight; // 滚动动画 默认NO @property (nonatomic, assign) BOOL animated; // 是否是点击滚动翻页的,为YES时 和 animated无效,无滚动动画 @property (nonatomic, assign) BOOL isClickScroll; - (void)reloadDataToItemAtIndex:(NSInteger)integer; - (void)reloadData; @end NS_ASSUME_NONNULL_END