Inherits from NSObject
Conforms to IGCalendarAppointmentDataSource
Declared in IGCalendarEKDataSourceHelper.h

Overview

The IGCalendarEKDataSourceHelper is basically just what it sounds like. If you’d like to display your iOS devices calendars, this class can handle that for you.

You simply provide an reference to the EKEventStore the calendar came from and EKCalendar that you want to display.

You can even change the color of the calendar if you don’t want to use the color from the EKCalendar.

If you don’t want to display the calendar tempoaritly, just set the hide property to YES and call invalidate on the IGCalendarView.

You can even look up the EKEvent that a particular IGCalendarAppointment represents.

Tasks

Properties

color

@property (nonatomic, retain) UIColor *color

hide

@property (nonatomic, assign) BOOL hide

title

@property (nonatomic, retain) NSString *title

Instance Methods

initWithCalendar:forStore:

Creates an IGCalendarEKDataSourceHelper with the given calendar.

- (id)initWithCalendar:(EKCalendar *)calendar forStore:(EKEventStore *)store

Parameters

calendar

An EKCalendar object.

store

An EKEventStore object. The object is stored weakly, so it’s up to you to keep a reference to it.

Return Value

Returns an initialized IGCalendarEKDataSourceHelper object or nil if the object could not be successfully initialized.

Declared In

IGCalendarEKDataSourceHelper.h

resolveEventFromAppointment:

Resolves the EKEvent that an IGCalendarAppointment represents.

- (EKEvent *)resolveEventFromAppointment:(IGCalendarAppointment *)appt

Parameters

appt

An IGCalendarAppointment that came from this IGCalendarEKDataSourceHelper

Return Value

Returns the backing EKEvent that this appointment represents.

Declared In

IGCalendarEKDataSourceHelper.h