XDBarView.h 968 B

123456789101112131415161718192021222324252627282930313233
  1. #import <UIKit/UIKit.h>
  2. #import "XDBarCell.h"
  3. typedef void(^SelectedWithTableViewPathRowBlock)(NSString *coldate,NSInteger row);
  4. @interface XDBarView : UIView
  5. @property (nonatomic,copy) void(^SelectedWithTableViewPathRowBlock) (NSString *coldate,NSInteger row);
  6. - (void)selectedWithTableViewPathRowBlock:(SelectedWithTableViewPathRowBlock)block;
  7. /**
  8. * 新图刚显示的时候默认选择的cell
  9. * Api
  10. */
  11. - (void)newinitSelectedWithTableViewPath:(NSIndexPath *)indexPath;
  12. /** tableview */
  13. @property(nonatomic,strong)UITableView *tb;
  14. /** 默认颜色 */
  15. @property (nonatomic,strong) UIColor *defaultColor;
  16. /** 点击颜色 */
  17. @property (nonatomic,strong) UIColor *SelectColor;
  18. /** 模型数组 {value、日期 (下标)}*/
  19. @property (nonatomic,strong) NSArray *modelArray;
  20. /** 柱状图宽 <60 */
  21. @property (nonatomic,assign) CGFloat barWith;
  22. /** cell点击范围宽度 默认 80*/
  23. @property (nonatomic,assign) CGFloat cellHeight;
  24. - (void) reloadtb;
  25. @end