SZCalendarPicker
a datepicker with calendar style
usage
- add class floder to your project
#import "SZCalendarPicker.h"
- (IBAction)showAction:(id)sender
{
SZCalendarPicker *calendarPicker = [SZCalendarPicker showOnView:self.view];
calendarPicker.today = [NSDate date];
calendarPicker.date = calendarPicker.today;
calendarPicker.frame = CGRectMake(0, 100, self.view.frame.size.width, 352);
calendarPicker.calendarBlock = ^(NSInteger day, NSInteger month, NSInteger year){
NSLog(@"%i-%i-%i", year,month,day);
};
}
THX
@nathanwhy and his demo HYCalendar