Skip to content

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

Notifications You must be signed in to change notification settings

CoJacob/CalendarPicker

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages