diff --git a/PDTSimpleCalendar/PDTSimpleCalendarViewController.m b/PDTSimpleCalendar/PDTSimpleCalendarViewController.m index 1ff0e10..658e711 100644 --- a/PDTSimpleCalendar/PDTSimpleCalendarViewController.m +++ b/PDTSimpleCalendar/PDTSimpleCalendarViewController.m @@ -347,7 +347,10 @@ - (NSCalendarUnit)weekCalendarUnitDependingOniOSVersion { if ([self.calendar respondsToSelector:@selector(isDateInToday:)]) { return NSCalendarUnitWeekOfMonth; } else { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" return NSWeekCalendarUnit; +#pragma clang diagnostic pop } }