123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // ALCalendarHeader.h
- // ALCalendarPickerDemo
- //
- // Created by Arclin on 2017/6/16.
- // Copyright © 2017年 arclin. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @class ALCalendarHeader;
- @protocol ALCalendarHeaderDelegate <NSObject>
- /**
- 点击了左边的按钮
- */
- - (void)header:(ALCalendarHeader *)header didClickLeftBtn:(UIButton *)button;
- /**
- 点击了右边的按钮
- */
- - (void)header:(ALCalendarHeader *)header didClickRightBtn:(UIButton *)button;
- @end
- @interface ALCalendarHeader : UIView
- /** 当前年月 yyyy-MM **/
- @property (nonatomic, copy) NSString *title;
- /** 起始年月 yyyy-MM */
- @property (nonatomic, copy) NSString *beginYearMonth;
- /** 结束年月 yyyy-MM */
- @property (nonatomic, copy) NSString *endYearMonth;
- /** 代理 */
- @property (nonatomic, assign) id<ALCalendarHeaderDelegate> delegate;
- @end
|