Conforms to NSObject
Declared in TKCalendarYearPresenter.h

Overview

Allows customization of the day cells in TKCalendar in year mode.

Instance Methods

calendar:drawBackgroundForYear:month:date:inRect:

Iterates over the day cells in year mode and allows change of their background color.

- (void)calendar:(TKCalendar *__nullable)calendar drawBackgroundForYear:(NSInteger)year month:(NSInteger)month date:(NSInteger)date inRect:(CGRect)rect

Parameters

calendar

The calendar where this event occurs.

year

The year number.

month

The month number.

date

The date number.

rect

The rect where background should be drawn.

Declared In

TKCalendarYearPresenter.h

calendar:textAttributesForYear:month:date:

Iterates over the day cells in year mode and allows usage of custom text attributes to draw the date number.

- (NSDictionary *__nullable)calendar:(TKCalendar *__nullable)calendar textAttributesForYear:(NSInteger)year month:(NSInteger)month date:(NSInteger)date

Parameters

calendar

The calendar where this event occurs.

year

The year number.

month

The month number.

date

The date number.

Declared In

TKCalendarYearPresenter.h

calendar:yearPresenter:textForYear:month:

Returns the text that should be used to represent the specified month.

- (NSString *__nullable)calendar:(TKCalendar *__nullable)calendar yearPresenter:(TKCalendarYearPresenter *__nonnull)presenter textForYear:(NSInteger)year month:(NSInteger)month

Parameters

calendar

The calendar where this event occurs.

presenter

The year presenter that is used to present content in TKCalendar.

year

The year number.

month

The month number.

Declared In

TKCalendarYearPresenter.h