From 9a93b29c86e3b17881ab6196d12c4d4f5cf211f1 Mon Sep 17 00:00:00 2001 From: Alexandr Kirichenko Date: Fri, 16 May 2014 16:42:37 +0300 Subject: [PATCH] missing delegate selector check --- Source/CKCalendarView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CKCalendarView.m b/Source/CKCalendarView.m index e79e5ac..fec2bbc 100644 --- a/Source/CKCalendarView.m +++ b/Source/CKCalendarView.m @@ -480,7 +480,7 @@ - (void)_dateButtonPressed:(id)sender { } [self selectDate:date makeVisible:YES]; - [self.delegate calendar:self didSelectDate:date]; + if ([self.delegate respondsToSelector:@selector(didSelectDate:)]) { [self.delegate calendar:self didSelectDate:date]; } [self setNeedsLayout]; }