ZYCalendarView
参考JTCalendar, 模仿Airbnb的日历
Git: https://github.com/Yanyinghenmei/ZYCalendarView
Reference JTCalendar, imitate Airbnb's calendar
ZYCalendarView *view = [[ZYCalendarView alloc] initWithFrame:CGRectMake(0, 64, self.view.frame.size.width, self.view.frame.size.height-64)]; // 不可以点击已经过去的日期 view.manager.canSelectPastDays = false; // 可以选择时间段 view.manager.selectionType = ZYCalendarSelectionTypeRange; // 设置当前日期 view.date = [NSDate date]; view.dayViewBlock = ^(NSDate *dayDate) { NSLog(@'%@', dayDate); };