CGXVerticalMenuCollectionSectionModel.m 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // CGXVerticalMenuCollectionSectionModel.m
  3. // CGXVerticalMenuView-OC
  4. //
  5. // Created by CGX on 2018/05/01.
  6. // Copyright © 2019 CGX. All rights reserved.
  7. //
  8. #import "CGXVerticalMenuCollectionSectionModel.h"
  9. @implementation CGXVerticalMenuCollectionSectionModel
  10. - (instancetype)init
  11. {
  12. self = [super init];
  13. if (self) {
  14. self.rowArray = [NSMutableArray array];
  15. self.rowCount = 3;
  16. self.insets =UIEdgeInsetsMake(10, 10, 10, 10);
  17. self.borderInsets = UIEdgeInsetsMake(0, 0, 0, 0);
  18. self.minimumLineSpacing = 10;
  19. self.minimumInteritemSpacing = 10;
  20. self.footerHeight = 10;
  21. self.headerHeight = 0;
  22. self.footerBgColor = [UIColor colorWithWhite:0.93 alpha:1];
  23. self.headerBgColor= [UIColor whiteColor];
  24. self.sectionColor= [UIColor blackColor];
  25. self.headersHovering = NO;
  26. self.headersHoveringTopEdging = 0;
  27. self.roundModel = [[CGXVerticalMenuRoundModel alloc] init];
  28. self.roundModel.isCalculateHeader = YES;
  29. self.roundModel.isCalculateFooter = YES;
  30. self.headNameModel = [[CGXVerticalMenuCustomTextModel alloc] init];
  31. }
  32. return self;
  33. }
  34. @end