52 lines
1.7 KiB
Markdown
52 lines
1.7 KiB
Markdown
# FSCalendar
|
|
|
|
## Features
|
|
### 1. Easy Appearance
|
|

|
|
|
|
### 2. Subtitle
|
|

|
|
|
|
## Usage
|
|
|
|
To run the example project, clone the repo, and run `pod install` from the Example directory first.
|
|
|
|
### 1. Simple DataSource/Delegate Pattern
|
|
_calendar.dataSource = self; // Must conform to FSCalendarDataSource
|
|
_calendar.delegate = self; // Must conform to FSCalendarDataDelegate
|
|
|
|
Of course the dataSource and delegate property is IBOutlet supported.
|
|
|
|
### 2. Page Direction Supported
|
|
_calendar.flow = FSCalendarFlowVertical; //Change to vertical flow, default is FSCalendarFlowHorizontal
|
|
|
|
### 3. Flexible Appearance Customization
|
|
[[FSCalendar appearance] setTodayColor: [UIColor redColor]]; //Change today circle/rectangle fill color
|
|
|
|
Look into FSCalendar.h to see more
|
|
|
|
### 4. Header
|
|
FSCalendarHeader *header = [[FSCalendarHeader alloc] initWithFrame:CGRectMake(0,0,_calendar.frame.size.width,_calendar.frame.size.height)];
|
|
|
|
We recommend set this in storyboard: drag a UIView Object, set the custom class to "FSCalendarViewHeader" and link it to the "header" property of the "FSCalendar" Object.
|
|
|
|
|
|
## Requirements
|
|
ios 7.0
|
|
|
|
## Installation
|
|
|
|
FSCalendar is available through [CocoaPods](http://cocoapods.org). To install
|
|
it, simply add the following line to your Podfile:
|
|
|
|
pod "FSCalendar"
|
|
|
|
## Author
|
|
|
|
Wenchao Ding, f33chobits@gmail.com
|
|
|
|
## License
|
|
|
|
FSCalendar is available under the MIT license. See the LICENSE file for more info.
|
|
|