Conforms to NSObject
Declared in TSQCalendarView.h

Overview

The methods in the TSQCalendarViewDelegate protocol allow the adopting delegate to either prevent a day from being selected or respond to it.

Instance Methods

calendarView:didSelectDate:

Tells the delegate that a particular date was selected.

- (void)calendarView:(TSQCalendarView *)calendarView didSelectDate:(NSDate *)date

Parameters

calendarView

The calendar view that is selecting a date.

date

Midnight on the date being selected.

Declared In

TSQCalendarView.h

calendarView:shouldSelectDate:

Asks the delegate whether a particular date is selectable.

- (BOOL)calendarView:(TSQCalendarView *)calendarView shouldSelectDate:(NSDate *)date

Parameters

calendarView

The calendar view that is selecting a date.

date

Midnight on the date being selected.

Return Value

Whether or not the date is selectable.

Discussion

This method should be relatively efficient, as it is called repeatedly to appropriate enable and disable individual days on the calendar view.

Declared In

TSQCalendarView.h