12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // YOUPAIWZHorizontalPageFlowlayout.h
- // WZShenmaStar
- //
- // Created by bigbiao on 2017/5/10.
- // Copyright © 2017年 BigBiao. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @interface YOUPAIWZHorizontalPageFlowlayout : UICollectionViewFlowLayout
- /** 列间距 */
- @property (nonatomic, assign) CGFloat youpaipcolumnSpacing;
- /** 行间距 */
- @property (nonatomic, assign) CGFloat youpaiprowSpacing;
- /** collectionView的内边距 */
- @property (nonatomic, assign) UIEdgeInsets youpaipedgeInsets;
- /** 多少行 */
- @property (nonatomic, assign) NSInteger youpaiprowCount;
- /** 每行展示多少个item */
- @property (nonatomic, assign) NSInteger youpaipitemCountPerRow;
- /** 所有item的属性数组 */
- @property (nonatomic, strong) NSMutableArray *youpaipattributesArrayM;
- /** 设置行列间距及collectionView的内边距 */
- - (void)setColumnSpacing:(CGFloat)columnSpacing rowSpacing:(CGFloat)rowSpacing edgeInsets:(UIEdgeInsets)edgeInsets;
- /** 设置多少行及每行展示的item个数 */
- - (void)setRowCount:(NSInteger)rowCount itemCountPerRow:(NSInteger)itemCountPerRow;
- #pragma mark - 构造方法
- /** 设置多少行及每行展示的item个数 */
- + (instancetype)youpaifhorizontalPageFlowlayoutWithRowCount:(NSInteger)rowCount itemCountPerRow:(NSInteger)itemCountPerRow;
- /** 设置多少行及每行展示的item个数 */
- - (instancetype)initWithRowCount:(NSInteger)rowCount itemCountPerRow:(NSInteger)itemCountPerRow;
- @end
|