An iOS calendar view component with vertical scrolling and auto-layout support.
Why use CABCalendarView?
- Vertical scrolling!
- Mark events on specific days!
- Familiar data source/delegate pattern!
- Well documented!
- Integration with Xcode Interface Builder (IBDesignable)!
- All dates in the past and future fully implemented!
I've also written an article with more details on my website. Check it out!
You might want to start by taking a look at the example project. To run the example project, clone the repo, and run
pod install from the Example directory first.
The easiest way to use CABCalendarView is through Interface Builder.
- Add a new view to your view controller.
- Set the class of this view to be a CABCalendarView type.
- Set the row height attribute as required, or leave it at the default (44pts).
- Ensure the height is 6x the row height, so that eactly six rows will be shown.
- Set up constraints for the view as required.
You should also set a data source and delegate and implement these methods to get the most out of this component.
CABCalendarView is available through CocoaPods. To install it, simply add the following line to your Podfile:
CABCalendarView is available under the MIT license. See the LICENSE file for more info.