项目作者: Winerywine

项目描述 :
一款轻量级的日历选择器(iOS Objective-C) A lightweight calendar Picker for the iOS platform
高级语言: Objective-C
项目地址: git://github.com/Winerywine/CalendarPicker.git
创建时间: 2019-06-24T06:11:06Z
项目社区:https://github.com/Winerywine/CalendarPicker

开源协议:

下载


CalendarPicker

一款轻量级的日历选择器(iOS Objective-C)
A lightweight calendar Picker for the iOS platform

Usage

  1. create picker _calendarPicker = [[CGCalendarPicker alloc] initWithFrame:CGRectMake(0, 0, width,height)];
  2. set mode _calendarPicker.selectionMode = CGSelectionModeRange;
  3. show [self.calendarPicker showInView:self.view];
  4. callback
    @protocol CGCalendarPickerDelegate

@optional

/**
弹窗消失后选中了某个日期(单选模式)

@param picker picker
@param date 选中的日期
*/

  • (void)calendarPicker: (CGCalendarPicker )picker didSelectedSingleModeDate: (NSDate )date;

/**
弹窗消失后选中了某个日期(区间模式)

@param picker picker
@param startDate 开始时间
@param endDate 结束时间
*/

  • (void)calendarPicker:(CGCalendarPicker )picker didSelectedRangeModeDateWithStartDate: (NSDate )startDate endDate: (NSDate *)endDate;

@end

Preview

img