SCalendarDataSource Protocol Reference

Conforms to NSObject
Declared in SCalendar.h
Availability
Related samples

Overview

An interface to inform the calendar which indicators and events the view should display.

Instance Methods

shinobiCalendar:eventViewForEvent:

Asks the data source for an event view to use for a particular event in the calendar.

- (SCalendarEventView *)shinobiCalendar:(ShinobiCalendar *)calendar eventViewForEvent:(SCalendarEvent *)event

Parameters

calendar

A Calendar object requesting the view.

event

The event that the view should represent.

Return Value

An object inheriting from SCalendarWeekEventView that the calendar can use for the specified event. An assertion is raised if you return nil.

Declared In

SCalendar.h

shinobiCalendar:eventsForDate:

Implement this method and provide an array of SCalendarEvent objects for each day to display events on that day.

- (NSArray<SCalendarEvent*> *)shinobiCalendar:(ShinobiCalendar *)calendar eventsForDate:(NSDate *)date

Parameters

calendar

The calendar that the events will be displayed on.

date

The date that the events will be displayed on.

Return Value

An array of SCalendarEvent objects.

Declared In

SCalendar.h