IGCompactCalendarAppointmentDataSource Protocol Reference

Conforms to NSObject
Declared in IGCompactCalendarView.h

Overview

The IGCompactCalendarAppointmentDataSource protocol is adopted by an object that mediates the application’s appointment data model for a IGCompactCalendarView object. The data source tells the calendar what days have appointments.

– compactCalendarView:hasAppointmentForMonth:day:year:

Asks the datasource wheter the particular day has any appointments.

- (BOOL)compactCalendarView:(IGCompactCalendarView *)calView hasAppointmentForMonth:(NSInteger)month day:(NSInteger)day year:(NSInteger)year

Parameters

calView

The IGCompactCalendarView providing the information.

month

The month for which the datasource is asking if there are any appointments. (1 - 12)

day

The day for which the datasource is asking if there are any appointments. (1 - 31)

year

The year for which the datasource is asking if there are any appointments.

Return Value

YES if there are any appointments on the given day, otherwise, return NO

Discussion

Return YES if the day has at least one appointment.

Declared In

IGCompactCalendarView.h