Inherits from UIView
Declared in TKCalendarMonthView.h

Overview

TKCalendarMonthView imitates the month grid in the Calendar app on iPhone.

Tasks

Properties

dataSource

The data source must adopt the TKCalendarMonthViewDataSource protocol. The data source is not retained.

@property (nonatomic, assign) id<TKCalendarMonthViewDataSource> dataSource

Discussion

The data source must adopt the TKCalendarMonthViewDataSource protocol. The data source is not retained.

Declared In

TKCalendarMonthView.h

delegate

The delegate must adopt the TKCalendarMonthViewDelegate protocol. The delegate is not retained.

@property (nonatomic, assign) id<TKCalendarMonthViewDelegate> delegate

Discussion

The delegate must adopt the TKCalendarMonthViewDelegate protocol. The delegate is not retained.

Declared In

TKCalendarMonthView.h

timeZone

The time zone for calendar grid.

@property (nonatomic, strong) NSTimeZone *timeZone

Discussion

The time zone for calendar grid.

Declared In

TKCalendarMonthView.h

Instance Methods

animateToNextOrPreviousMonth:

Animates the calendar to the next or previous month.

- (void)animateToNextOrPreviousMonth:(BOOL)next

Parameters

next

YES for next month, NO for previous month.

Discussion

Animates the calendar to the next or previous month.

Declared In

TKCalendarMonthView.h

dateSelected

The current date highlighted on the month grid.

- (NSDate *)dateSelected

Return Value

An NSDate object set to the month, year and day of the current selection.

Discussion

The current date highlighted on the month grid.

Declared In

TKCalendarMonthView.h

initWithSundayAsFirst:

Initialize a Calendar Month Grid.

- (id)initWithSundayAsFirst:(BOOL)sunday

Parameters

sunday

Flag to setup the grid with Monday or Sunday as the leftmost day.

Return Value

A TKCalendarMonthView object or nil.

Discussion

Initialize a Calendar Month Grid.

Declared In

TKCalendarMonthView.h

initWithSundayAsFirst:timeZone:

Initialize a Calendar Month Grid.

- (id)initWithSundayAsFirst:(BOOL)sunday timeZone:(NSTimeZone *)timeZone

Parameters

sunday

Flag to setup the grid with Monday or Sunday as the leftmost day.

timeZone

The time zone of the grid,

Return Value

A TKCalendarMonthView object or nil.

Discussion

Initialize a Calendar Month Grid.

Declared In

TKCalendarMonthView.h

initWithTimeZone:

Initialize a Calendar Month Grid.

- (id)initWithTimeZone:(NSTimeZone *)timeZone

Parameters

timeZone

The time zone of the grid,

Return Value

A TKCalendarMonthView object or nil.

Discussion

Initialize a Calendar Month Grid.

Declared In

TKCalendarMonthView.h

monthDate

The current month date being displayed.

- (NSDate *)monthDate

Return Value

An NSDate object set to the month and year of the current month grid.

Discussion

The current month date being displayed.

Declared In

TKCalendarMonthView.h

reloadData

Reloads the current month grid.

- (void)reloadData

Discussion

Reloads the current month grid.

Declared In

TKCalendarMonthView.h

selectDate:

Selects a specific date in the month grid.

- (BOOL)selectDate:(NSDate *)date

Parameters

date

The date that will be highlighed.

Discussion

Selects a specific date in the month grid.

Declared In

TKCalendarMonthView.h