Skip to content
Easy to use, simple, clean calendar view
Branch: master
Clone or download
Tjeerd in t Veen
Tjeerd in t Veen license added to readme
Latest commit fcb856f Sep 4, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Vurig Calendar.xcodeproj init May 29, 2012
Vurig Calendar Name corrections Jun 1, 2012
.DS_Store Fix for when the current date is not highlighted if the month has 31 … May 31, 2012
.gitignore Initial commit May 29, 2012
README.md license added to readme Sep 4, 2013

README.md

VURIG Calendar

A calendar view for iOS.

Easy to use, simple, clean.

Also animated :-)

Installation

Copy the files from the calendar group to your own project.

Usage

VRGCalendarView *calendar = [[VRGCalendarView alloc] init];
calendar.delegate=self;
[self.view addSubview:calendar];

##Delegate methods ####Selecting days Whenever a user selects a date, the following method will be called:

-(void)calendarView:(VRGCalendarView *)calendarView dateSelected:(NSDate *)date;

####Switching months This delegate method will be called whenever a user switches to the next or previous month.

-(void)calendarView:(VRGCalendarView *)calendarView switchedToMonth:(int)month targetHeight:(float)targetHeight animated:(BOOL)animated;

With the way the calendar layouts work, the number of rows (and thus the height) can vary. You can react to this change by using the targetHeight parameter.

Mark the dates of that month by sending an array with NSDate or NSNumber objects. Like so:

NSArray *dates = [NSArray arrayWithObjects:[NSNumber numberWithInt:1],[NSNumber numberWithInt:5], nil];
[calendarView markDates:dates];

Or

NSArray *date = [NSArray arrayWithObjects:[NSDate date], nil];
NSArray *color = [NSArray arrayWithObjects:[UIColor redColor],nil];
[calendarView markDates:date withColors:color];

##License Vurig Calendar is released under the MIT License
http://opensource.org/licenses/MIT

You can’t perform that action at this time.