现在我正在使用JTAppCalendar 6.0版本,
func configureCalendar(_ calendar: JTAppleCalendarView) -> ConfigurationParameters {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy MM dd"
let parameters = ConfigurationParameters(startDate: startDate,
endDate: endDate,
numberOfRows: 6,
calendar: testCalendar, // This parameter will be removed in version 6.0
generateInDates: .forAllMonths,
generateOutDates: .tillEndOfGrid,
firstDayOfWeek: .sunday)
return parameters
}
答案 0 :(得分:0)
只需将startDate从您要开始滚动的月份开始。