-
Inspired by PDTSimpleCalendar. I write this similar date picker library.
-
It's a convenience calendar date picker library written in swift for iOS 8.0+.
- Drag
YFCalendar
folder into your project. 👍
let calendarController: YFCalendarController = YFCalendarController()
calendarController.firstDate = Date();
calendarController.lastDate = Date().addingTimeInterval(11/12.0*365*oneDayTimeInterval)
calendarController.startDate = Date().addingTimeInterval(oneDayTimeInterval)
calendarController.endDate = Date().addingTimeInterval(oneDayTimeInterval * 5)
self.navigationController?.pushViewController(calendarController, animated: true)
YFCalendarController *calendarController = [YFCalendarController new];
calendarController.delegate = self;
calendarController.startDate = self.date1;
calendarController.endDate = self.date2;
[self.navigationController pushViewController:calendarController animated:YES];