Inherits from TKCalendarPresenterBase : UIView
Declared in TKCalendarMonthPresenter.h

Overview

A calendar presenter responsible for rendering TKCalendar in month view mode.

Properties

contentView

Returns a view which contains date cells.

@property (nonatomic, strong, readonly) UIView *contentView

Declared In

TKCalendarMonthPresenter.h

dayNamesHidden

Determines whether day names should be hidden.

@property (nonatomic) BOOL dayNamesHidden

Declared In

TKCalendarMonthPresenter.h

equalWeekNumber

Determines whether equal week number should be used. If this property is set to NO, the month presenter will calculate its row count based on the displayed month.

@property (nonatomic) BOOL equalWeekNumber

Declared In

TKCalendarMonthPresenter.h

headerIsSticky

Determines whether the month header (containing title and day names) should be sticky when navigating to a different month.

@property (nonatomic) BOOL headerIsSticky

Declared In

TKCalendarMonthPresenter.h

headerView

Returns the header view which contains month name and week day names.

@property (nonatomic, strong, readonly) UIView *headerView

Declared In

TKCalendarMonthPresenter.h

inlineEventsView

Returns the events view responsible for presenting events when inline events are enabled.

@property (nonatomic, strong) TKCalendarInlineView *inlineEventsView

Declared In

TKCalendarMonthPresenter.h

inlineEventsViewMode

Defines the view mode for day evnets view which appears when tapping on a day cell in month presenter.

@property (nonatomic) TKCalendarInlineEventsViewMode inlineEventsViewMode

Discussion

The available view modes are specified below:

typedef enum { TKCalendarInlineEventsViewModeNone, // Do not show day events list when tapping on a date cell. This is the default value. TKCalendarInlineEventsViewModeInline, // Show day events list in an inline view. TKCalendarInlineEventsViewModePopover, // Show day events in a popover view. Available for iPad user interface idiom. } TKCalendarInlineEventsViewMode;

Declared In

TKCalendarMonthPresenter.h

owner

Returns an instance of TKCalendar, the owner of this presenter class.

@property (nonatomic, weak, readonly) TKCalendar *owner

Declared In

TKCalendarMonthPresenter.h

style

Returns the presenter style. Use the style properties to customize the visual appearance of TKCalendar in month view.

@property (nonatomic, strong, readonly) TKCalendarMonthPresenterStyle *style

Declared In

TKCalendarMonthPresenter.h

titleHidden

Determines whether the month name should be hidden.

@property (nonatomic) BOOL titleHidden

Declared In

TKCalendarMonthPresenter.h

weekNumbersHidden

Determines whether week numbers should be hidden.

@property (nonatomic) BOOL weekNumbersHidden

Declared In

TKCalendarMonthPresenter.h

weekendsHidden

Determines whether weekends should be hidden.

@property (nonatomic) BOOL weekendsHidden

Declared In

TKCalendarMonthPresenter.h

Instance Methods

cellForDate:

Returns the cell responsible for presenting the specified date (if it is currently displayed).

- (TKCalendarDayCell *__nullable)cellForDate:(NSDate *__nonnull)date

Parameters

date

The date.

Return Value

An instance of TKCalendarDayCell which represents the date if successfull.

Declared In

TKCalendarMonthPresenter.h

createCellWithType:

Creates a cell based on the specified cell type.

- (TKCalendarCell *__nonnull)createCellWithType:(TKCalendarCellType)cellType

Parameters

cellType

The type of the cell that is requested.

Declared In

TKCalendarMonthPresenter.h

dateForRow:col:

Returns a date at specific row and column

- (NSDate *__nonnull)dateForRow:(NSInteger)row col:(NSInteger)col

Parameters

row

The row.

col

The column.

Return Value

An instance of NSDate if successfull.

Declared In

TKCalendarMonthPresenter.h

hideInlineEvents:

Hides the inline events view if it is visible.

- (void)hideInlineEvents:(BOOL)animated

Parameters

animated

Defines whether to use animation when hiding the inline evnets list.

Declared In

TKCalendarMonthPresenter.h

showInlineEventsForCell:animated:

Shows a new view containing all events for specific date.

- (void)showInlineEventsForCell:(TKCalendarDayCell *__nonnull)cell animated:(BOOL)animated

Parameters

cell

The cell that requested the inline view.

animated

Defines whether to use animation when showing the inline evnets list.

Declared In

TKCalendarMonthPresenter.h

updateInlineView

Updates only the inline event view of the calendar. *

- (void)updateInlineView

Declared In

TKCalendarMonthPresenter.h