Inherits from UIView
Conforms to UICollectionViewDataSource
UICollectionViewDelegateFlowLayout
Declared in TKCalendarDayView.h

Overview

View that displays the events for a specific date in calendar day view mode.

Properties

allDayEvents

Collection of events that are used as a source for the allDayView.

@property (nonatomic, strong, readonly, nullable) NSArray<id<TKCalendarEventProtocol> > *allDayEvents

Declared In

TKCalendarDayView.h

allDayEventsView

Returns the view that displays the all-day events.

@property (nonatomic, strong, readonly, nonnull) TKCalendarDayViewAllDayEventsView *allDayEventsView

Declared In

TKCalendarDayView.h

calendar

The calendar.

@property (nonatomic, strong, readonly, nullable) NSCalendar *calendar

Declared In

TKCalendarDayView.h

dataSource

The object responsible for providing the views required by a TKCalendarDayView view.

@property (nonatomic, strong, nullable) id<TKCalendarDayViewDataSource> dataSource

Declared In

TKCalendarDayView.h

date

Returns the date associated with the TKCalendarDayView. The events for this date are used as a source for the eventsView and allDayEventsView.

@property (nonatomic, strong, readonly, nullable) NSDate *date

Declared In

TKCalendarDayView.h

delegate

The object that acts as the delegate of the TKCalendarDayView view.

@property (nonatomic, strong, nullable) id<TKCalendarDayViewDelegate> delegate

Declared In

TKCalendarDayView.h

emptyView

Returns a view that is displayed when no date is associated with the TKCalendarDayView.

@property (nonatomic, strong, readonly, nonnull) UIView *emptyView

Declared In

TKCalendarDayView.h

events

Collection of events that are used as a source for the eventsView.

@property (nonatomic, strong, readonly, nullable) NSArray<id<TKCalendarEventProtocol> > *events

Declared In

TKCalendarDayView.h

eventsView

Returns the view that displays events that are not marked as all-day.

@property (nonatomic, strong, readonly, nonnull) TKCalendarDayViewEventsView *eventsView

Declared In

TKCalendarDayView.h

Instance Methods

attachWithEvents:forDate:withCalendar:

Updates the data displayed in the day view.

- (void)attachWithEvents:(NSArray<id<TKCalendarEventProtocol> > *__nonnull)events forDate:(NSDate *__nonnull)date withCalendar:(NSCalendar *__nonnull)calendar

Parameters

events

The events that will be displayed in the day view.

date

The displayed date.

calendar

The calendar.

Declared In

TKCalendarDayView.h