XDBarCell.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //主色调 治愈系
  2. #define ColorWithHEAL [UIColor colorWithRed:0/255.0f green:197/255.0f blue:188/255.0f alpha:1]
  3. /**
  4. * 正黑体 合气 粗
  5. */
  6. #define Font_cu_PingFangSC_Medium_size(a) [UIFont fontWithName:@"PingFangSC-Medium" size:a]
  7. /**
  8. * 正黑体 合气 细
  9. */
  10. #define Font_xi_PingFangSC_Light_size(a) [UIFont fontWithName:@"PingFangSC-Light" size:a]
  11. #import <UIKit/UIKit.h>
  12. @interface XDBarCell : UITableViewCell
  13. /** 横坐标轴线 */
  14. @property (nonatomic,strong) UIView *lineView;
  15. /** 横坐标文字 */
  16. @property (nonatomic,strong) UILabel *xLabel;
  17. /** 柱子 */
  18. @property (nonatomic,strong) UIView *barView;
  19. /** 统计数值 */
  20. @property (nonatomic,strong) UILabel *numLabel;
  21. /** 最大数 */
  22. @property (nonatomic,assign) CGFloat maxValue;
  23. /** 柱状图宽 <60 */
  24. @property (nonatomic,assign) CGFloat barWith;
  25. /** cell点击范围宽度 默认 80*/
  26. @property (nonatomic,assign) CGFloat cellHeight;
  27. /** cell长度 默认与表一致*/
  28. @property (nonatomic,assign) CGFloat cellLong;
  29. /** 数据源 */
  30. @property (nonatomic, strong) NSDictionary *dataDic;
  31. /**为了保证设置值次序符合代码
  32. @param cellHei 单元格高
  33. @param barW 柱状图宽
  34. @param maxV 最大统计值
  35. @param dic 数据源
  36. */
  37. - (void)setCellHeight:(CGFloat)cellHei barWidth:(CGFloat)barW maxValue:(CGFloat)maxV dataDictionary:(NSDictionary *)dic;
  38. @end