JXCategorySubTitleView.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // JXCategorySubTitleView.h
  3. // ObjcExample
  4. //
  5. // Created by gaokun on 2021/1/21.
  6. //
  7. #import "JXCategoryTitleView.h"
  8. #import "JXCategorySubTitleCell.h"
  9. #import "JXCategorySubTitleCellModel.h"
  10. @interface JXCategorySubTitleView : JXCategoryTitleView
  11. // 子标题列表
  12. @property (nonatomic, strong) NSArray <NSString *> *subTitles;
  13. // 子标题相对于title的位置,默认JXCategorySubTitlePositionStyle_Bottom
  14. @property (nonatomic, assign) JXCategorySubTitlePositionStyle positionStyle;
  15. // 子标题相当于title的对齐,默认JXCategorySubTitleAlignStyle_Center
  16. // 当positionStyle为上下时,对齐方式左中右有效
  17. // 当positionStyle为左右时,对齐方式上中下有效
  18. @property (nonatomic, assign) JXCategorySubTitleAlignStyle alignStyle;
  19. // 子标题相对于title的间距,默认0
  20. @property (nonatomic, assign) CGFloat subTitleWithTitlePositionMargin;
  21. // 子标题相当于title的对齐间距,默认0
  22. @property (nonatomic, assign) CGFloat subTitleWithTitleAlignMargin;
  23. // 子标题默认颜色 // 默认:[UIColor blackColor]
  24. @property (nonatomic, strong) UIColor *subTitleColor;
  25. // 子标题选中颜色 // 默认:[UIColor blackColor]
  26. @property (nonatomic, strong) UIColor *subTitleSelectedColor;
  27. // 子标题默认字体 // 默认:[UIFont systemFontOfSize:12]
  28. @property (nonatomic, strong) UIFont *subTitleFont;
  29. // 子标题选中字体 //文字被选中的字体。默认:与titleFont一样
  30. @property (nonatomic, strong) UIFont *subTitleSelectedFont;
  31. // 是否忽略subTitle宽度,默认NO,此属性只在positionStyle为左右时有效
  32. @property (nonatomic, assign, getter=isIgnoreSubTitleWidth) BOOL ignoreSubTitleWidth;
  33. @end