| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // CustomCategoryCell.h
- // BuguLive
- //
- // Created by voidcat on 2024/7/25.
- // Copyright © 2024 xfg. All rights reserved.
- //
- #import <JXCategoryViewExt/JXCategorySubTitleView.h>
- #import <JXCategoryViewExt/JXCategoryView.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface BogoJXCategoryView : JXCategoryTitleView
- // 子标题列表
- @property (nonatomic, strong) NSArray <NSString *> *subTitles;
- // 子标题相对于title的位置,默认JXCategorySubTitlePositionStyle_Bottom
- @property (nonatomic, assign) JXCategorySubTitlePositionStyle positionStyle;
- // 子标题相当于title的对齐,默认JXCategorySubTitleAlignStyle_Center
- // 当positionStyle为上下时,对齐方式左中右有效
- // 当positionStyle为左右时,对齐方式上中下有效
- @property (nonatomic, assign) JXCategorySubTitleAlignStyle alignStyle;
- // 子标题相对于title的间距,默认0
- @property (nonatomic, assign) CGFloat subTitleWithTitlePositionMargin;
- // 子标题相当于title的对齐间距,默认0
- @property (nonatomic, assign) CGFloat subTitleWithTitleAlignMargin;
- // 子标题默认颜色 // 默认:[UIColor blackColor]
- @property (nonatomic, strong) UIColor *subTitleColor;
- // 子标题选中颜色 // 默认:[UIColor blackColor]
- @property (nonatomic, strong) UIColor *subTitleSelectedColor;
- // 子标题默认字体 // 默认:[UIFont systemFontOfSize:12]
- @property (nonatomic, strong) UIFont *subTitleFont;
- // 子标题选中字体 //文字被选中的字体。默认:与titleFont一样
- @property (nonatomic, strong) UIFont *subTitleSelectedFont;
- // 是否忽略subTitle宽度,默认NO,此属性只在positionStyle为左右时有效
- @property (nonatomic, assign, getter=isIgnoreSubTitleWidth) BOOL ignoreSubTitleWidth;
- @property (nonatomic, strong) UIView *backgroundView;
- @property (nonatomic, strong) UIColor *selectedBackgroundColor;
- @property (nonatomic, strong) UIColor *unselectedBackgroundColor;
- @end
- NS_ASSUME_NONNULL_END
|