Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 2.01 KB

RELEASENOTES.md

File metadata and controls

50 lines (31 loc) · 2.01 KB

##PDTSimpleCalendar Release Notes

###0.7.1

New delegate method to disable specific dates

- (BOOL)simpleCalendarViewController:(PDTSimpleCalendarViewController *)controller isEnabledDate:(NSDate *)date;

Accessibility Labels on Cell will return a proper formatted date.

Change Header and Day font using appearance proxy

###0.7.0

####Behavior change

setSelectedDate:animated: is now deprecated and will be removed in next version. Selecting a date in the calendar shouldn't be tied to scrolling to it.

Use setSelectedDate: & scrollToSelectedDate: instead.

####Spring Cleaning:

Old delegates methods have been removed from the code base.

- (void)simpleCalendarViewDidSelectDate:(NSDate *)date;
- (BOOL)simpleCalendarShouldUseCustomColorsForDate:(NSDate *)date;
- (UIColor *)simpleCalendarCircleColorForDate:(NSDate *)date;
- (UIColor *)simpleCalendarTextColorForDate:(NSDate *)date;

You should now use:

- (void)simpleCalendarViewController:(PDTSimpleCalendarViewController *)controller didSelectDate:(NSDate *)date;
- (BOOL)simpleCalendarViewController:(PDTSimpleCalendarViewController *)controller shouldUseCustomColorsForDate:(NSDate *)date;
- (UIColor *)simpleCalendarViewController:(PDTSimpleCalendarViewController *)controller circleColorForDate:(NSDate *)date;
- (UIColor *)simpleCalendarViewController:(PDTSimpleCalendarViewController *)controller textColorForDate:(NSDate *)date;

PDTSimpleCalendarDaysPerWeek has been removed from the code base. Days per week are automatically retrieve from the calendar property.

Fix: scrollToDate takes into account contentInset Fix: Respect Calendar's locale formatting for days number

###0.6

if you specify a firstDate and/or lastDate the calendar will display the full month, but dates < firstDate or > lastDate will be disabled. You can see this behavior in the demo app.

You will notice that the delegate format have changed. Previous delegate definitions (and also a static variable) have been deprecated. They will be removed in the next release.