Files
fanyin-ios/Pods/JXCategoryView/Sources/Number/JXCategoryNumberView.h

61 lines
1.7 KiB
C
Raw Normal View History

2025-08-12 14:27:12 +08:00
//
// JXCategoryNumberView.h
// DQGuess
//
// Created by jiaxin on 2018/4/9.
// Copyright © 2018年 jingbo. All rights reserved.
//
#import "JXCategoryTitleView.h"
#import "JXCategoryNumberCell.h"
#import "JXCategoryNumberCellModel.h"
@interface JXCategoryNumberView : JXCategoryTitleView
/**
titles的count对应
*/
@property (nonatomic, strong) NSArray <NSNumber *> *counts;
/**
999999+block实现
*/
@property (nonatomic, copy) NSString *(^numberStringFormatterBlock)(NSInteger number);
/**
numberLabel的font[UIFont systemFontOfSize:11]
*/
@property (nonatomic, strong) UIFont *numberLabelFont;
/**
[UIColor colorWithRed:241/255.0 green:147/255.0 blue:95/255.0 alpha:1]
*/
@property (nonatomic, strong) UIColor *numberBackgroundColor;
/**
title颜色[UIColor whiteColor]
*/
@property (nonatomic, strong) UIColor *numberTitleColor;
/**
numberLabel的宽度补偿label真实的宽度是文字内容的宽度加上补偿的宽度10
*/
@property (nonatomic, assign) CGFloat numberLabelWidthIncrement;
/**
numberLabel的高度14
*/
@property (nonatomic, assign) CGFloat numberLabelHeight;
/**
numberLabel x,y方向的偏移 +
*/
@property (nonatomic, assign) CGPoint numberLabelOffset;
/**
numberLabel变成圆numberLabel的宽度等于高度cornerRadius等于高度/2truenumberLabelWidthIncrement属性NO
*/
@property (nonatomic, assign) BOOL shouldMakeRoundWhenSingleNumber;
@end