要运行示例项目,首先克隆仓库,然后在 Example 目录中运行 pod install
。
YFCalendar 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 中
pod "YFCalendar"
var calendarView = YFCalendarView()
calendarView.calendarViewDelegate = self
optional func calendarView(calenderView: YFCalendarView, setGeneralColor dateType: DateType, dateState: DateState) -> UIColor?
optional func calendarView(calenderView: YFCalendarView, SetGeneralFont dateType: DateType, dateState: DateState) -> UIFont?
optional func calendarView(calenderView: YFCalendarView, SetSelectionCircleBorderColor dateType: DateType) -> UIColor?
optional func calendarView(calenderView: YFCalendarView, SetSelectionCircleFillColor dateType: DateType) -> UIColor?
optional func calendarView(calenderView: YFCalendarView, autoSelectTheFirstDateOfTheNewMonth mode: SelectionMode) -> Bool
optional func calendarView(calenderView: YFCalendarView, willPresentTheMonth theMonth: YFMonthView) -> Void
optional func calendarView(calenderView: YFCalendarView, didPresentTheMonth theMonth: YFMonthView) -> Void
optional func calendarView(calenderView: YFCalendarView, didSelectADay selectedDay: YFDayView) -> Void
optional func calendarView(calenderView: YFCalendarView, didDeselectADay deselectedDay: YFDayView) -> Void
optional func calendarView(calenderView: YFCalendarView, customizeColorForTheDay theDay: YFDayView, dateState: DateState) -> UIColor?
optional func calendarView(calenderView: YFCalendarView, customizeFontForTheDay theDay: YFDayView, dateState: DateState) -> UIFont?
optional func calendarView(calenderView: YFCalendarView, customizeSelectionCircleBorderColorForTheDay theDay: YFDayView) -> UIColor?
optional func calendarView(calenderView: YFCalendarView, customizeSelectionCircleFillColorForTheDay theDay: YFDayView) -> UIColor?
optional func calendarView(calenderView: YFCalendarView, customizeContentViewForTheDay theDay: YFDayView, dateState: DateState) -> UIView?
optional func calendarView(calenderView: YFCalendarView, initializeDotsForTheDay theDay: YFDayView) -> [UIColor]?
optional func calendarView(calenderView: YFCalendarView, disableUserInteractionForTheDay theDay: YFDayView) -> Bool
optional func calendarViewSetDateSelectionMode(calenderView: YFCalendarView) -> SelectionMode
optional func calendarViewSetScrollDirection(calenderView: YFCalendarView) -> CalendarScrollDirection
optional func calendarViewTurnOnSelectionAnimation(calenderView: YFCalendarView) -> Bool
optional func calendarViewAutoScrollToTheNewMonthWhenTabTheDateOutsideOfTheCurrentMonth(calenderView: YFCalendarView) -> Bool
optional func calendarViewShowDateOutsideOfTheCurrentMonth(calenderView: YFCalendarView) -> Bool
optional func calendarViewAutoSelectToday(calenderView: YFCalendarView) -> Bool
optional func calendarViewSetSelectionCircleRadius(calenderView: YFCalendarView) -> CGFloat
optional func calendarViewSetSelectionCircleBorderWidth(calenderView: YFCalendarView) -> CGFloat
optional func calendarViewSetDotMarkRadius(calenderView: YFCalendarView) -> CGFloat
optional func calendarViewSetDotMarkOffsetFromDateCenter(calenderView: YFCalendarView) -> CGFloat
optional func calendarViewSetDistanceBetweenDots(calenderView: YFCalendarView) -> CGFloat
optional func calendarViewSetDotMarkSelectedColor(calenderView: YFCalendarView) -> UIColor?
optional func calendarViewSetTopLineColor(calenderView: YFCalendarView) -> UIColor?
optional func calendarViewSetTopLineThickness(calenderView: YFCalendarView) -> CGFloat
optional func calendarViewShowTopLine(calenderView: YFCalendarView) -> Bool
pushian, [email protected]
YFCalendar 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。