Update README.md

This commit is contained in:
Wenchao Ding 2015-02-16 17:21:59 +08:00
parent 4f8fff173b
commit de031fb866
1 changed files with 8 additions and 3 deletions

View File

@ -19,9 +19,14 @@ To run the example project, clone the repo, and run `pod install` from the Examp
_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
[[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)];