From abe857402f7de7e4a747333624e5c27eb24ade9b Mon Sep 17 00:00:00 2001 From: Sasi kiran Malladi Date: Mon, 16 Jun 2014 13:40:09 +0530 Subject: [PATCH] Fixed setWeek: deprecation with setWeekOfMonth: --- Source/CKCalendarView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }