Conforms to NSObject
Declared in TKCalendar.h

Overview

The methods declared by the TKCalendarDelegate protocol allow the adopting delegate to respond to messages from the TKCalendar class and thus respond to, and in some affect, operations such as selection, navigation and customizing the visual appearance.

Instance Methods

calendar:didChangedViewModeFrom:to:

Called after view mode has changed. *

- (void)calendar:(TKCalendar *__nonnull)calendar didChangedViewModeFrom:(TKCalendarViewMode)previousViewMode to:(TKCalendarViewMode)viewMode

Parameters

calendar

The calendar component for which the view mode was changed.

previousViewMode

The previous view mode.

viewMode

The actual view mode.

Declared In

TKCalendar.h

calendar:didDeselectedDate:

Called after deselecting a date.

- (void)calendar:(TKCalendar *__nonnull)calendar didDeselectedDate:(NSDate *__nonnull)date

Parameters

calendar

The calendar component for which the selection change occurred.

date

The date that was deselected.

Declared In

TKCalendar.h

calendar:didNavigateToDate:

Called after navigating to specific date.

- (void)calendar:(TKCalendar *__nonnull)calendar didNavigateToDate:(NSDate *__nonnull)date

Parameters

calendar

The calendar component where navigation occurred.

date

The date that was displayed.

Declared In

TKCalendar.h

calendar:didSelectDate:

Called after selecting a date.

- (void)calendar:(TKCalendar *__nonnull)calendar didSelectDate:(NSDate *__nonnull)date

Parameters

calendar

The calendar component for which the selection occurred.

date

The date that was selected.

Declared In

TKCalendar.h

calendar:didTapCell:

Called when a cell has been tapped.

- (void)calendar:(TKCalendar *__nonnull)calendar didTapCell:(TKCalendarDayCell *__nonnull)cell

Parameters

calendar

The calendar component where the cell was tapped.

cell

The cell that was tapped.

Declared In

TKCalendar.h

calendar:shapeForEvent:

Called when a cell needs to display a shape for event.

- (TKShape *__nullable)calendar:(TKCalendar *__nonnull)calendar shapeForEvent:(id<TKCalendarEventProtocol> __nonnull)event

Parameters

calendar

The calendar component where the event shapeis requested.

event

The event.

Declared In

TKCalendar.h

calendar:shouldSelectDate:

Returns a boolean value indicating whether the specified date can be selected.

- (BOOL)calendar:(TKCalendar *__nonnull)calendar shouldSelectDate:(NSDate *__nonnull)date

Parameters

calendar

The calendar component instance requesting this information.

date

The date which is about to be selected.

Return Value

YES if the date can be selected.

Declared In

TKCalendar.h

calendar:textForEvent:

Called when a cell needs to display text for event.

- (NSString *__nullable)calendar:(TKCalendar *__nonnull)calendar textForEvent:(id<TKCalendarEventProtocol> __nonnull)event

Parameters

calendar

The calendar component where the event shapeis requested.

event

The event.

Declared In

TKCalendar.h

calendar:updateVisualsForCell:

Called when a cell needs to update its visual state.

- (void)calendar:(TKCalendar *__nonnull)calendar updateVisualsForCell:(TKCalendarCell *__nonnull)cell

Parameters

calendar

The calendar component where the cell state was changed.

cell

The cell that has changed its state.

Declared In

TKCalendar.h

calendar:viewForCellOfKind:

Returns an instance of TKCalendarCell specific for the requested cell type.

- (TKCalendarCell *__nullable)calendar:(TKCalendar *__nonnull)calendar viewForCellOfKind:(TKCalendarCellType)cellType

Parameters

calendar

The calendar instance requesting this information.

cellType

The cell type which determines the TKCalendarCell instance. *

Return Value

An instance of TKCalendarCell if the cell should be customized, nil otherwise.

Declared In

TKCalendar.h

calendar:willNavigateToDate:

Called before navigating to specific date.

- (void)calendar:(TKCalendar *__nonnull)calendar willNavigateToDate:(NSDate *__nonnull)date

Parameters

calendar

The calendar component where navigation occurs.

date

The date which is about to be displayed.

Declared In

TKCalendar.h