RSDayFlow
iOS 7 Calendar with Infinite Scrolling. Only need 4 lines of code to set up.
RSDayFlow is a slim fork of DayFlow with updates and extensions:
- Visual feedback of the currently selected cell
- Possibility to mark the date
- Design like iOS 7
- Much more updates
Installation
CocoaPods is the recommended method of installing RSDayFlow. Simply add the following line to your Podfile
:
Podfile
Basic Usage
Import the class header.
Just create your date picker view and set a delegate / a data source if needed.
Delegate (optional)
RSDFDatePickerView
provides three delegate methods. The method datePickerView:shouldHighlightDate:
asks the delegate if the date should be highlighted during tracking. The method datePickerView:shouldSelectDate:
asks the delegate if the specified date should be selected. The method datePickerView:didSelectDate:
called when a user click on a specific date. To use them, implement the delegate in your view controller.
Then implement the delegate functions.
DataSource (optional)
RSDFDatePickerView
provides three data source methods. The method datePickerView:shouldMarkDate:
asks the data source if the date should be marked. The method datePickerView:markImageColorForDate:
asks the data source about the color of the default mark image for the specified date. The method datePickerView:markImageForDate:
asks the data source about the mark image for the specified date. The method datePickerView:markImageColorForDate:
will be ignored if the method datePickerView:markImageForDate:
is implemented. To use these methods, implement the data source in your view controller.
Then implement the data source functions.
Customization
Every view is customizable to fit your need.
Create a subclass of the desired view and override the default values.
Coming Soon
- If you would like to request a new feature, feel free to raise as an issue.
Demo
Build and run the RSDayFlowExample
project in Xcode to see RSDayFlow
in action.
Have fun. Make it faster. Fork and send pull requests. Figure out hooks for customization.