diff --git a/Source/CKCalendarView.m b/Source/CKCalendarView.m index e79e5ac..71b644c 100644 --- a/Source/CKCalendarView.m +++ b/Source/CKCalendarView.m @@ -289,7 +289,7 @@ - (void)layoutSubviews { NSDate *endDate = [self _firstDayOfNextMonthContainingDate:self.monthShowing]; if (!self.onlyShowCurrentMonth) { NSDateComponents *comps = [[NSDateComponents alloc] init]; - [comps setWeek:numberOfWeeksToShow]; + [comps setWeekOfMonth:numberOfWeeksToShow]; endDate = [self.calendar dateByAddingComponents:comps toDate:date options:0]; }