fix day view appearance set
This commit is contained in:
parent
a11136c29c
commit
b46bbcabae
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'TUCalendar'
|
||||
s.version = '1.1.1'
|
||||
s.version = '1.1.2'
|
||||
s.summary = 'A short description of TUCalendar.'
|
||||
|
||||
s.description = <<-DESC
|
||||
|
|
|
|||
|
|
@ -147,6 +147,10 @@ static CGFloat const kTodayLabelHeight = 12.f;
|
|||
}
|
||||
|
||||
- (void)setState:(TUCalendarDayViewState *)state {
|
||||
if (!self.dayViewAppearance) {
|
||||
self.dayViewAppearance = [TUCalendarDayViewAppearance new];
|
||||
}
|
||||
|
||||
self.dayButton.selected = NO;
|
||||
self.dayButton.highlighted = NO;
|
||||
self.dayButton.enabled = NO;
|
||||
|
|
@ -208,14 +212,6 @@ static CGFloat const kTodayLabelHeight = 12.f;
|
|||
self.backgroundColor = self.dayViewAppearance.backgroundColor;
|
||||
}
|
||||
|
||||
- (void)didMoveToSuperview {
|
||||
[super didMoveToSuperview];
|
||||
|
||||
if (!self.dayViewAppearance) {
|
||||
self.dayViewAppearance = [TUCalendarDayViewAppearance new];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)updateBackgroundState {
|
||||
UIControlState buttonState = self.dayButton.state;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue