如何在JTAppCalendar中禁用滚动到上个月的内容?

时间:2018-11-08 10:59:12

标签: ios iphone swift calendar jtapplecalendar

现在我正在使用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
    }

1 个答案:

答案 0 :(得分:0)

只需将startDate从您要开始滚动的月份开始。