Conforms to NSObject
Declared in TKCalendarDayView.h

Overview

The TKCalendarDayViewDelegate protocol defines methods that allow you handle selection of event cells and to customize the layout of the TKCalendarDayViewAllDayEventsView.

Instance Methods

allDayViewSizeInDayView:

Asks the delegate for the size of the TKCalendarDayViewAllDayEventsView.

- (CGSize)allDayViewSizeInDayView:(TKCalendarDayView *__nonnull)dayView

Parameters

dayView

The all-day events view’s superview.

Return Value

The width and height of the specified view. All values must be greater than 0.

Declared In

TKCalendarDayView.h

dayView:allDaylayout:insetForSectionAtIndex:

Asks the delegate for the margins of specified section’s content.

- (UIEdgeInsets)dayView:(TKCalendarDayView *__nonnull)dayView allDaylayout:(UICollectionViewLayout *__nonnull)layout insetForSectionAtIndex:(NSInteger)section

Parameters

dayView

The all-day events view’s superview.

layout

The layout object requesting the information.

section

The index of the section.

Return Value

The margins that will be applied to the section’s content.

Declared In

TKCalendarDayView.h

dayView:allDaylayout:minimumInteritemSpacingForSectionAtIndex:

Asks the delegate for the spacing between successive intems in a row/column of a section.

- (CGFloat)dayView:(TKCalendarDayView *__nonnull)dayView allDaylayout:(UICollectionViewLayout *__nonnull)layout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section

Parameters

dayView

The all-day events view’s superview.

layout

The layout object requesting the information.

section

The index of the section.

Return Value

The minimum spacing (measured in points) to be applied between successive items in the lines of a section.

Declared In

TKCalendarDayView.h

dayView:allDaylayout:minimumLineSpacingForSectionAtIndex:

Asks the delegate for the spacing between successive rows/columns of a section.

- (CGFloat)dayView:(TKCalendarDayView *__nonnull)dayView allDaylayout:(UICollectionViewLayout *__nonnull)layout minimumLineSpacingForSectionAtIndex:(NSInteger)section

Parameters

dayView

The all-day events view’s superview.

layout

The layout object requesting the information.

section

The index of the section.

Return Value

The minimum spacing (measured in points) to be applied between successive lines in the section.

Declared In

TKCalendarDayView.h

dayView:allDaylayout:sizeForItemAtIndexPath:

Asks the delegte for the size of the specified all-day event’s cell.

- (CGSize)dayView:(TKCalendarDayView *__nonnull)dayView allDaylayout:(UICollectionViewLayout *__nonnull)layout sizeForItemAtIndexPath:(NSIndexPath *__nonnull)indexPath

Parameters

dayView

The all-day events view’s superview.

layout

The layout object requesting the information.

indexPath

The index path of the all-day event.

Return Value

The width and height of the specified event. All values must be greater than 0.

Declared In

TKCalendarDayView.h

dayView:didSelectEvent:

Tells the delegate that an event has been selected.

- (void)dayView:(TKCalendarDayView *__nonnull)dayView didSelectEvent:(id<TKCalendarEventProtocol> __nonnull)event

Parameters

dayView

The TKCalendarDayView that is notifying of the selection.

event

The selected event.

Declared In

TKCalendarDayView.h