SCalendarDelegate Protocol Reference

Conforms to NSObject
Declared in SCalendar.h
Availability
Related samples

Overview

An interface to customise the calendar and respond to events.

Instance Methods

shinobiCalendar:doubleTappedDate:

Informs the delegate that a date has been double tapped on the calendar.

- (void)shinobiCalendar:(ShinobiCalendar *)calendar doubleTappedDate:(NSDate *)date

Parameters

calendar

The calendar instance that the date was double tapped on.

date

The date double tapped.

Declared In

SCalendar.h

shinobiCalendar:eventIndicatorImageForDate:

Allows customisation of the event indicators shown in month view. If this method is not implemented, or if nil is returned, then the calendar will use the default indicator specified in the style.

- (UIImage *)shinobiCalendar:(ShinobiCalendar *)calendar eventIndicatorImageForDate:(NSDate *)date

Parameters

calendar

The calendar that will display the date.

date

The date that the indicator will be used for.

Return Value

An image to use as the event indicator for this date.

Declared In

SCalendar.h

shinobiCalendar:selectedEvent:

Informs the delegate that an event has been tapped on the calendar.

- (void)shinobiCalendar:(ShinobiCalendar *)calendar selectedEvent:(SCalendarEvent *)event

Parameters

calendar

The calendar instance that the event was selected on.

event

The event selected.

Declared In

SCalendar.h

shinobiCalendar:tappedDate:

Informs the delegate that a date has been tapped on the calendar.

- (void)shinobiCalendar:(ShinobiCalendar *)calendar tappedDate:(NSDate *)date

Parameters

calendar

The calendar instance that the date was tapped on.

date

The date tapped.

Declared In

SCalendar.h

shinobiCalendar:willDisplayDayNumberLabelForToday:

Implement this method to customise the day number label that represents today before it appears on the calendar.

- (void)shinobiCalendar:(ShinobiCalendar *)calendar willDisplayDayNumberLabelForToday:(UILabel *)todayLabel

Parameters

calendar

The calendar that the day number label for today is about to be displayed on.

todayLabel

The day number label that represents today and will be displayed on the calendar.

Discussion

Any modifications to this UILabel will be displayed on the calendar.

Declared In

SCalendar.h

shinobiCalendar:willDisplayMonthTitleLabel:forMonthStarting:

Implement this method to customise the month title labels before they appear on the calendar.

- (void)shinobiCalendar:(ShinobiCalendar *)calendar willDisplayMonthTitleLabel:(UILabel *)monthTitleLabel forMonthStarting:(NSDate *)monthStartDate

Parameters

calendar

The calendar that the month title label is about to be displayed on.

monthTitleLabel

The month title label that will be displayed on the calendar.

monthStartDate

The start date of the month that the monthTitleLabel represents.

Discussion

Any modifications to this UILabel will be displayed on the calendar.

Declared In

SCalendar.h

shinobiCalendar:willDisplayYearTitleLabel:forYearStarting:

Implement this method to customise the year title labels before they appear on the calendar.

- (void)shinobiCalendar:(ShinobiCalendar *)calendar willDisplayYearTitleLabel:(UILabel *)yearTitleLabel forYearStarting:(NSDate *)yearStartDate

Parameters

calendar

The calendar that the year title label is about to be displayed on.

yearTitleLabel

The label that is about to be displayed, and represents the year on the calendar.

yearStartDate

The start date of the year that the yearTitleLabel represents.

Discussion

Any modifications to this UILabel will be displayed on the calendar.

Declared In

SCalendar.h