TKCalendarPresenter Protocol Reference
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
-
– update:
required method -
– updateState:
required method -
– navigateForward:
required method -
– navigateBack:
required method -
– navigateToDate:animated:
required method -
– dateFromPoint:
required method
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