Skip to content

YFCalnedar is a convenience calendar date picker library written in swift for iOS 8.0+.

Notifications You must be signed in to change notification settings

zooyf/YFCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YFCalendar

  • 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+.

Install

  • Drag YFCalendar folder into your project. 👍

Usage

Swift

    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)

Objective-c

    YFCalendarController *calendarController = [YFCalendarController new];
    calendarController.delegate = self;
    calendarController.startDate = self.date1;
    calendarController.endDate = self.date2;
    
    [self.navigationController pushViewController:calendarController animated:YES];

Screenshots

About

YFCalnedar is a convenience calendar date picker library written in swift for iOS 8.0+.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published