一折买app------返利---------返利宝

WSLWaterFlowLayout.h 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //
  2. // WSLWaterFlowLayout.h
  3. // collectionView
  4. //
  5. // Created by 王双龙 on 2017/10/16.
  6. // Copyright © 2017年 https://www.jianshu.com/u/e15d1f644bea All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef enum {
  10. WSLVerticalWaterFlow = 0, /** 竖向瀑布流 item等宽不等高 */
  11. WSLHorizontalWaterFlow = 1, /** 水平瀑布流 item等高不等宽 不支持头脚视图*/
  12. WSLVHWaterFlow = 2, /** 竖向瀑布流 item等高不等宽 */
  13. WSLLineWaterFlow = 3 /** 线性布局 待完成,敬请期待 */
  14. } WSLFlowLayoutStyle; //样式
  15. @class WSLWaterFlowLayout;
  16. @protocol WSLWaterFlowLayoutDelegate <NSObject>
  17. /** 竖向瀑布流 item等宽不等高 */
  18. -(CGFloat)waterFlowLayout:(WSLWaterFlowLayout *)waterFlowLayout heightForItemAtIndexPath:(NSIndexPath *)indexPath itemWidth:(CGFloat)itemWidth;
  19. /** 水平瀑布流 item等高不等宽 */
  20. -(CGFloat)waterFlowLayout:(WSLWaterFlowLayout *)waterFlowLayout widthForItemAtIndexPath:(NSIndexPath *)indexPath itemHeight:(CGFloat)itemHeight;
  21. /** 竖向瀑布流 item等高不等宽 列数、行数无用*/
  22. - (CGSize)waterFlowLayout:(WSLWaterFlowLayout *)waterFlowLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath;
  23. /** 头视图Size */
  24. -(CGSize )waterFlowLayout:(WSLWaterFlowLayout *)waterFlowLayout sizeForHeaderViewInSection:(NSInteger)section;
  25. /** 脚视图Size */
  26. -(CGSize )waterFlowLayout:(WSLWaterFlowLayout *)waterFlowLayout sizeForFooterViewInSection:(NSInteger)section;
  27. @optional //以下都有默认值
  28. /** 列数*/
  29. -(CGFloat)columnCountInWaterFlowLayout:(WSLWaterFlowLayout *)waterFlowLayout;
  30. /** 行数*/
  31. -(CGFloat)rowCountInWaterFlowLayout:(WSLWaterFlowLayout *)waterFlowLayout;
  32. /** 列间距*/
  33. -(CGFloat)columnMarginInWaterFlowLayout:(WSLWaterFlowLayout *)waterFlowLayout;
  34. /** 行间距*/
  35. -(CGFloat)rowMarginInWaterFlowLayout:(WSLWaterFlowLayout *)waterFlowLayout;
  36. /** 边缘之间的间距*/
  37. -(UIEdgeInsets)edgeInsetInWaterFlowLayout:(WSLWaterFlowLayout *)waterFlowLayout;
  38. @property UIBezierPath *aGu6Qzv;
  39. @property UIBezierPath *aNSAczu2;
  40. @property UIApplication *ap5mHtkJ;
  41. @property UIUserInterfaceIdiom *ayHnSxcuf;
  42. @property UILabel *a7fX4;
  43. @property UIImageView *aJt8agW;
  44. @property UIMenuItem *ajRUo5a;
  45. @property UIViewController *ajmlc;
  46. @property UIScreen *aTnBt;
  47. @property UIMenuItem *aOheb;
  48. @property UIButton *anP5adtGH;
  49. @property UIEdgeInsets *aLS9Ib82Ea;
  50. @property UIActivity *a3Iz80L;
  51. @property UILabel *ajBprPTc;
  52. @property UITableView *aVMy36Ig;
  53. @property UIApplication *a46Iy1s;
  54. @property UIFontWeight *aPxt2Q;
  55. @end
  56. @interface WSLWaterFlowLayout : UICollectionViewLayout
  57. /** delegate*/
  58. @property (nonatomic, weak) id<WSLWaterFlowLayoutDelegate> delegate;
  59. /** 瀑布流样式*/
  60. @property (nonatomic, assign) WSLFlowLayoutStyle flowLayoutStyle;
  61. @property UIBezierPath *aGu6Qzv;
  62. @property UIBezierPath *aNSAczu2;
  63. @property UIApplication *ap5mHtkJ;
  64. @property UIUserInterfaceIdiom *ayHnSxcuf;
  65. @property UILabel *a7fX4;
  66. @property UIImageView *aJt8agW;
  67. @property UIMenuItem *ajRUo5a;
  68. @property UIViewController *ajmlc;
  69. @property UIScreen *aTnBt;
  70. @property UIMenuItem *aOheb;
  71. @property UIButton *anP5adtGH;
  72. @property UIEdgeInsets *aLS9Ib82Ea;
  73. @property UIActivity *a3Iz80L;
  74. @property UILabel *ajBprPTc;
  75. @property UITableView *aVMy36Ig;
  76. @property UIApplication *a46Iy1s;
  77. @property UIFontWeight *aPxt2Q;
  78. @end