测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最后发布 | 2016年12月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 Ama.Qiu 维护。
AMACalendar
是为 Bmemo
编写,并与 Daysquare 相关,因此需要 Bmemo
对农历的支持。要求
使用方法
let calendar = calendarView(frame: CGRect(x: 10,
y: 50,
width: UIScreen.main.bounds.width - 20,
height: 280))
calendar.addTarget(self, action: #selector(calendarChange), for: .valueChanged)
view.addSubview(calendar)
@objc fileprivate func calendarChange(view: calendarView) {
let formatter = DateFormatter()
formatter.dateFormat = "YYYY-MM-dd"
print(formatter.string(from: (view.selectedDate?.0)!), view.selectedDate!.1)
}
安装
pod 'AMACalendar', ~> 0.0.1