ALCalendarHeader.h 846 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // ALCalendarHeader.h
  3. // ALCalendarPickerDemo
  4. //
  5. // Created by Arclin on 2017/6/16.
  6. // Copyright © 2017年 arclin. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class ALCalendarHeader;
  10. @protocol ALCalendarHeaderDelegate <NSObject>
  11. /**
  12. 点击了左边的按钮
  13. */
  14. - (void)header:(ALCalendarHeader *)header didClickLeftBtn:(UIButton *)button;
  15. /**
  16. 点击了右边的按钮
  17. */
  18. - (void)header:(ALCalendarHeader *)header didClickRightBtn:(UIButton *)button;
  19. @end
  20. @interface ALCalendarHeader : UIView
  21. /** 当前年月 yyyy-MM **/
  22. @property (nonatomic, copy) NSString *title;
  23. /** 起始年月 yyyy-MM */
  24. @property (nonatomic, copy) NSString *beginYearMonth;
  25. /** 结束年月 yyyy-MM */
  26. @property (nonatomic, copy) NSString *endYearMonth;
  27. /** 代理 */
  28. @property (nonatomic, assign) id<ALCalendarHeaderDelegate> delegate;
  29. @end