Skip to content

A Objective-C implementation of calendar view resembling Apple Calendar App.

License

Notifications You must be signed in to change notification settings

wzso/VFCalendarView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VFCalendarView

996.icu

A Objective-C implementation of calendar view for iOS.

Some tips

All the math job about date is done by NSCalendar. You can check it out in Helper.m. There are detailed comments.

Usage

You can easily initialize a calendar view by providing the right frame, a starting and an ending date.

VFCalendarView *cal = [[VFCalendarView alloc] initWithFrame:CGRectMake(0, 30.f, CGRectGetWidth(self.view.bounds), 0) fromDate:[NSDate date] toDate:[Helper changeMonthFrom:[NSDate date] byIncrement:3]];
[self.view addSubview:cal];

Screenshots

Current day looks like this:

current day

Highlighted days look like this:

highlighted

About

A Objective-C implementation of calendar view resembling Apple Calendar App.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published