HorizontalLayout.h 564 B

1234567891011121314151617181920212223242526
  1. //
  2. // HorizontalLayout.h
  3. // EaseIM
  4. //
  5. // Created by 娜塔莎 on 2020/5/7.
  6. // Copyright © 2020 娜塔莎. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface HorizontalLayout : UICollectionViewFlowLayout
  11. /** 每行item数量*/
  12. @property (nonatomic,assign) NSInteger rowCount;
  13. /** 每列item数量*/
  14. @property (nonatomic,assign) NSInteger columCount;
  15. /** item总数*/
  16. @property (nonatomic,assign) NSInteger itemCountSum;
  17. - (instancetype)initWithOffset:(CGFloat)xOffset yOffset:(CGFloat)yOffset;
  18. @end
  19. NS_ASSUME_NONNULL_END