猎豆优选

LXCalendarView.h 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // LXCalendarView.h
  3. // LXCalendar
  4. //
  5. // Created by chenergou on 2017/11/2.
  6. // Copyright © 2017年 漫漫. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef void (^SelectBlock) (NSInteger year ,NSInteger month ,NSInteger day);
  10. @interface LXCalendarView : UIView
  11. /*
  12. * 当前月的title颜色
  13. */
  14. @property(nonatomic,strong)UIColor *currentMonthTitleColor;
  15. /*
  16. * 上月的title颜色
  17. */
  18. @property(nonatomic,strong)UIColor *lastMonthTitleColor;
  19. /*
  20. * 下月的title颜色
  21. */
  22. @property(nonatomic,strong)UIColor *nextMonthTitleColor;
  23. /*
  24. * 选中的背景颜色
  25. */
  26. @property(nonatomic,strong)UIColor *selectBackColor;
  27. /*
  28. * 今日的title颜色
  29. */
  30. @property(nonatomic,strong)UIColor *todayTitleColor;
  31. /*
  32. * 选中的是否动画效果
  33. */
  34. @property(nonatomic,assign)BOOL isHaveAnimation;
  35. /*
  36. * 是否禁止手势滚动
  37. */
  38. @property(nonatomic,assign)BOOL isCanScroll;
  39. /*
  40. * 是否显示上月,下月的按钮
  41. */
  42. @property(nonatomic,assign)BOOL isShowLastAndNextBtn;
  43. /*
  44. * 是否显示上月,下月的的数据
  45. */
  46. @property(nonatomic,assign)BOOL isShowLastAndNextDate;
  47. /*
  48. * 在配置好上面的属性之后执行
  49. */
  50. -(void)dealData;
  51. //选中的回调
  52. @property(nonatomic,copy)SelectBlock selectBlock;
  53. @end