Conforms to NSObject
Declared in TKCalendar.h

Overview

The TKCalendarPresenter protocol is adopted by an object that displays the calendar component in specific view mode.

Tasks

Instance Methods

dateFromPoint:

Returns a date based on the provided coordinates.

- (NSDate *__nullable)dateFromPoint:(CGPoint)pt

Parameters

pt

The coordinates for the requested date.

Return Value

An instance of NSDate if successful, nil otherwise.

Declared In

TKCalendar.h

navigateBack:

The presenter should navigate one screen backward based on its context. Do not call this method directly, use TKCalendar.navigateBack instead.

- (BOOL)navigateBack:(BOOL)animated

Parameters

animated

Specifies whether to use animation when navigating.

Return Value

YES if navigation was scuccessfull.

Declared In

TKCalendar.h

navigateForward:

The presenter should navigate one screen forward based on its context. Do not call this method directly, use TKCalendar.navigateForward instead.

- (BOOL)navigateForward:(BOOL)animated

Parameters

animated

Specifies whether to use animation when navigating. *

Return Value

YES if navigation was scuccessfull.

Declared In

TKCalendar.h

navigateToDate:animated:

The presenter should navigate to specific date. Do not call this method directly, use TKCalendar.navigateTodate:animated: instead. *

- (void)navigateToDate:(NSDate *__nonnull)date animated:(BOOL)animated

Parameters

date

The date to which the presenter should navigate.

animated

Specifies whether to use animation when navigating.

Declared In

TKCalendar.h

update:

Called when the presenter should update its content. (e.g. navigation has occurred)

- (void)update:(BOOL)reset

Parameters

reset

Determines whether all visual elements should be reset.

Declared In

TKCalendar.h

updateState:

Called when the presenter should update all states. (e.g. a different date was selected)

- (void)updateState:(NSDate *__nonnull)lastSelected

Parameters

lastSelected

The last selected date.

Declared In

TKCalendar.h