dkahgld

XHLTagLabelsLayout.h 769B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // XHLLabelsLayout.h
  3. // TestCollectionLayout
  4. //
  5. // Created by xhl on 16/6/15.
  6. // Copyright © 2016年 xhl. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol XHLTagLabelsLayoutDelegate <NSObject>
  10. @required
  11. - (CGSize)tagLabels:(UICollectionViewLayout *)tagLabels indexPath:(NSIndexPath *)indexPath;
  12. @optional
  13. /**
  14. * 行间距
  15. */
  16. - (CGFloat)rowMarginInWaterflowLayout:(UICollectionViewLayout*)layout;
  17. /**
  18. * 列间距
  19. */
  20. - (CGFloat)columnMarginInWaterflowLayout:(UICollectionViewLayout*)layout;
  21. /**
  22. * collectionView内边距
  23. */
  24. - (UIEdgeInsets)edgeInsetsInWaterflowLayout:(UICollectionViewLayout*)layout;
  25. @end
  26. @interface XHLTagLabelsLayout : UICollectionViewLayout
  27. @property (nonatomic,weak) id<XHLTagLabelsLayoutDelegate> delegate;
  28. @end