123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- //
- // CGXVerticalMenuContainerView.h
- // CGXVerticalMenuView-OC
- //
- // Created by CGX on 2018/05/01.
- // Copyright © 2019 CGX. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import "CGXVerticalMenuContainerCollectionView.h"
- NS_ASSUME_NONNULL_BEGIN
- @class CGXVerticalMenuContainerView;
- @protocol CGXVerticalMenuContainerViewDataSouce<NSObject>
- @optional
- - (NSInteger)numberOfRowsInListContainerView:(CGXVerticalMenuContainerView *)listContainerView;
- - (UIView *)verticalListContainerView:(CGXVerticalMenuContainerView *)listContainerView listViewInRow:(NSInteger)row;
- @end
- @protocol CGXVerticalMenuContainerViewDelegate<NSObject>
- @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<CGXVerticalMenuContainerViewDataSouce> dataSouce;
- @property (nonatomic, weak) id<CGXVerticalMenuContainerViewDelegate> 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
|