1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //主色调 治愈系
- #define ColorWithHEAL [UIColor colorWithRed:0/255.0f green:197/255.0f blue:188/255.0f alpha:1]
- /**
- * 正黑体 合气 粗
- */
- #define Font_cu_PingFangSC_Medium_size(a) [UIFont fontWithName:@"PingFangSC-Medium" size:a]
- /**
- * 正黑体 合气 细
- */
- #define Font_xi_PingFangSC_Light_size(a) [UIFont fontWithName:@"PingFangSC-Light" size:a]
- #import <UIKit/UIKit.h>
- @interface XDBarCell : UITableViewCell
- /** 横坐标轴线 */
- @property (nonatomic,strong) UIView *lineView;
- /** 横坐标文字 */
- @property (nonatomic,strong) UILabel *xLabel;
- /** 柱子 */
- @property (nonatomic,strong) UIView *barView;
- /** 统计数值 */
- @property (nonatomic,strong) UILabel *numLabel;
- /** 最大数 */
- @property (nonatomic,assign) CGFloat maxValue;
- /** 柱状图宽 <60 */
- @property (nonatomic,assign) CGFloat barWith;
- /** cell点击范围宽度 默认 80*/
- @property (nonatomic,assign) CGFloat cellHeight;
- /** cell长度 默认与表一致*/
- @property (nonatomic,assign) CGFloat cellLong;
- /** 数据源 */
- @property (nonatomic, strong) NSDictionary *dataDic;
- /**为了保证设置值次序符合代码
- @param cellHei 单元格高
- @param barW 柱状图宽
- @param maxV 最大统计值
- @param dic 数据源
- */
- - (void)setCellHeight:(CGFloat)cellHei barWidth:(CGFloat)barW maxValue:(CGFloat)maxV dataDictionary:(NSDictionary *)dic;
- @end
|