An iOS calendar view component with vertical scrolling and auto-layout support.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CABCalendarView
Example
.gitignore
.travis.yml
CABCalendarView.podspec
LICENSE
README.md
Screenshot.gif
_Pods.xcodeproj

README.md

CABCalendarView

CI Status Version License Platform

An iOS calendar view component with vertical scrolling and auto-layout support.

alt text

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!

Usage

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.

  1. Add a new view to your view controller.
  2. Set the class of this view to be a CABCalendarView type.
  3. Set the row height attribute as required, or leave it at the default (44pts).
  4. Ensure the height is 6x the row height, so that eactly six rows will be shown.
  5. 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.

Installation

CABCalendarView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "CABCalendarView"

Author

craig, @CraigAB24

License

CABCalendarView is available under the MIT license. See the LICENSE file for more info.