YOUPAIWZHorizontalPageFlowlayout.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // YOUPAIWZHorizontalPageFlowlayout.h
  3. // WZShenmaStar
  4. //
  5. // Created by bigbiao on 2017/5/10.
  6. // Copyright © 2017年 BigBiao. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface YOUPAIWZHorizontalPageFlowlayout : UICollectionViewFlowLayout
  10. /** 列间距 */
  11. @property (nonatomic, assign) CGFloat youpaipcolumnSpacing;
  12. /** 行间距 */
  13. @property (nonatomic, assign) CGFloat youpaiprowSpacing;
  14. /** collectionView的内边距 */
  15. @property (nonatomic, assign) UIEdgeInsets youpaipedgeInsets;
  16. /** 多少行 */
  17. @property (nonatomic, assign) NSInteger youpaiprowCount;
  18. /** 每行展示多少个item */
  19. @property (nonatomic, assign) NSInteger youpaipitemCountPerRow;
  20. /** 所有item的属性数组 */
  21. @property (nonatomic, strong) NSMutableArray *youpaipattributesArrayM;
  22. /** 设置行列间距及collectionView的内边距 */
  23. - (void)setColumnSpacing:(CGFloat)columnSpacing rowSpacing:(CGFloat)rowSpacing edgeInsets:(UIEdgeInsets)edgeInsets;
  24. /** 设置多少行及每行展示的item个数 */
  25. - (void)setRowCount:(NSInteger)rowCount itemCountPerRow:(NSInteger)itemCountPerRow;
  26. #pragma mark - 构造方法
  27. /** 设置多少行及每行展示的item个数 */
  28. + (instancetype)youpaifhorizontalPageFlowlayoutWithRowCount:(NSInteger)rowCount itemCountPerRow:(NSInteger)itemCountPerRow;
  29. /** 设置多少行及每行展示的item个数 */
  30. - (instancetype)initWithRowCount:(NSInteger)rowCount itemCountPerRow:(NSInteger)itemCountPerRow;
  31. @end