123456789101112131415161718192021222324252627 |
- //
- // CalenderHeaderView.m
- // YZCCalender
- //
- // Created by Jason on 2018/1/18.
- // Copyright © 2018年 jason. All rights reserved.
- //
- #import "CalenderHeaderView.h"
- #import "UIColor+Extension.h"
- @implementation CalenderHeaderView
- - (UILabel *)yearAndMonthLabel {
- if (_yearAndMonthLabel == nil) {
- _yearAndMonthLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, self.frame.size.height * 0.5 - 30 * 0.5, self.frame.size.width, 30)];
- _yearAndMonthLabel.textAlignment = NSTextAlignmentLeft;
- _yearAndMonthLabel.font = [UIFont systemFontOfSize:16];
- _yearAndMonthLabel.textColor = [UIColor colorWithHexString:@"#999999"];
- [self addSubview:_yearAndMonthLabel];
- }
- return _yearAndMonthLabel;
- }
- @end
|