Go to file
Wenchao Ding de031fb866 Update README.md 2015-02-16 17:21:59 +08:00
Example add subtitle-toggle in example 2015-02-15 22:03:10 +08:00
Pod add subtitle-toggle in example 2015-02-15 22:03:10 +08:00
.gitignore Initial commit 2015-02-13 22:10:59 +08:00
.travis.yml Initial commit 2015-02-13 22:10:59 +08:00
FSCalendar.podspec update podspec 2015-02-16 16:05:19 +08:00
LICENSE Initial commit 2015-02-13 22:10:59 +08:00
README.md Update README.md 2015-02-16 17:21:59 +08:00

README.md

FSCalendar

Features

1. Easy appearance adjustment

appearance

2. Subtitle

subtitle1

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

1. Simple DataSource/Delegate Pattern (IBOutlet supported)

_calendar.dataSource = self; 
_calendar.delegate = self;

2. Page Direction Supported

_calendar.flow = FSCalendarFlowVertical; //Change to vertical flow, default is FSCalendarFlowHorizontal

3. Flexible Appearance Customization

[[FSCalendar appearance] setWeekdayTextColor:[UIColor redColor]];   // week symbol color
[[FSCalendar appearance] setHeaderTitleColor:[UIColor darkGrayColor]]; // header text color
[[FSCalendar appearance] setEventColor:[UIColor greenColor]]; // event mark color
[[FSCalendar appearance] setSelectionColor:[UIColor blueColor]]; // selection fill color
[[FSCalendar appearance] setHeaderDateFormat:@"yyyy-MM"]; // header date format
[[FSCalendar appearance] setMinDissolvedAlpha:0.5]; // change to 1.0 to make header no alpha
[[FSCalendar appearance] setTodayColor:[UIColor redColor]]; // today fill color
[[FSCalendar appearance] setUnitStyle:FSCalendarUnitStyleCircle]; // shape of today/selection fill color.Circle/Fectangle

4. Header (IBOutlet supported too)

FSCalendarHeader *header = [[FSCalendarHeader alloc]    initWithFrame:CGRectMake(0,0,_calendar.frame.size.width,_calendar.frame.size.height)];

Requirements

ios 7.0

Installation

FSCalendar is available through CocoaPods. 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.