TKCalendarDayViewAllDayEventsView Class Reference
Inherits from | UIView |
Declared in | TKCalendarDayViewAllDayEventsView.h |
Tasks
-
eventsView
property -
labelView
property -
date
property -
events
property -
style
property -
– attachWithEvents:forDate:
-
– createLabelView
-
– createEventsView
-
– updateLayout
Properties
date
The date displayed by the TKCalendarDayView.
@property (nonatomic, weak, readonly, nullable) NSDate *date
Declared In
TKCalendarDayViewAllDayEventsView.h
events
The collection of all-day events displayed in the TKCalendarDayView.
@property (nonatomic, weak, readonly, nullable) NSArray<id<TKCalendarEventProtocol> > *events
Declared In
TKCalendarDayViewAllDayEventsView.h
eventsView
The collection view that displays the events.
@property (nonatomic, strong, readonly, nonnull) UICollectionView *eventsView
Declared In
TKCalendarDayViewAllDayEventsView.h
Instance Methods
attachWithEvents:forDate:
Updates the displayed events data.
- (void)attachWithEvents:(NSArray<id<TKCalendarEventProtocol> > *__nullable)events forDate:(NSDate *__nullable)date
Parameters
- events
The all-day events that will be displayed in the eventsView.
- date
The displayed date.
Declared In
TKCalendarDayViewAllDayEventsView.h
createEventsView
Creates the collection view that displays the events.
- (UICollectionView *__nonnull)createEventsView
Return Value
The events view.
Declared In
TKCalendarDayViewAllDayEventsView.h
createLabelView
Creates the label.
- (UIView *__nonnull)createLabelView
Return Value
The label view.
Declared In
TKCalendarDayViewAllDayEventsView.h
updateLayout
Call this method to apply any changes that affect the layout of the events view.
- (void)updateLayout
Declared In
TKCalendarDayViewAllDayEventsView.h