ios - 在 FScalendar swift 中禁用 future 日期选择

标签 ios swift fscalendar

我正在使用 https://github.com/WenchaoD/FSCalendar在我的项目中。 MaximumSelectedDate 是一个只读属性。那么如何禁用 future 日期?

最佳答案

你应该使用委托(delegate)方法来解决这个问题

func maximumDate(for calendar: FSCalendar) -> Date {
    return Date()
}

关于ios - 在 FScalendar swift 中禁用 future 日期选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42760793/

相关文章:

ios - 从正弦扫描计算频率响应的问题

swift - __lldb_expr_640.MyClassName 错误?

Swift 版本获取错误的像素数据,但 Object-c 版本使用方法 "CGBitmapContextCreate"从同一图像获取正确的像素数据

swift - 在 swift 中运行终端命令不起作用

ios - siwfty json 解析失败

ios - 桥接 NSImage 和 UIImage

ios - 不规则字体名称何时与粗体和斜体结合使用?

ios - 我如何以编程方式选择日期并显示在 FSCalendar 上

ios - 选择颜色更改 FSCalendar 中的事件颜色

ios - 在 FSCalendar UIView 上放置按钮