Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A powerful calendar view with subtitle and smooth scrolling supported

License

Notifications You must be signed in to change notification settings

KsonCode/FSCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

46 Commits

Repository files navigation

FSCalendar

##中文文档

Features

1. Smooth Scrolling and directions(vertical/horizotal)

animate

2. Appearance adjustment

appearance

3. Subtitle

subtitle1

Usage

pod 'FSCalendar'

#import FSCalendar.h

1. Simple DataSource/Delegate Pattern (IBOutlet supported)

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

FSCalendarDataSource

  • (NSString *)calendar:(FSCalendar *)calendar subtitleForDate:(NSDate *)date; // set subtitle
  • (BOOL)calendar:(FSCalendar *)calendar hasEventForDate:(NSDate *)date; // set event dot

FSCalendarDelegate

  • (BOOL)calendar:(FSCalendar *)calendar shouldSelectDate:(NSDate *)date;
  • (void)calendar:(FSCalendar *)calendar didSelectDate:(NSDate *)date;
  • (void)calendarCurrentMonthDidChange:(FSCalendar *)calendar;

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)

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

For more appearance and other usage, look into FSCalendar.h

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.

Others

  • If FSCalendar cannot meet your requirment, welcome to submit issues or pull request
  • If you are using this library and using custom color modulation, please take a screenshot for your calendar appearance here, this will help others better matching color in their apps, thanks

About

A powerful calendar view with subtitle and smooth scrolling supported

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 72.5%
  • C 21.3%
  • Shell 4.7%
  • Ruby 1.1%
  • MATLAB 0.4%

AltStyle によって変換されたページ (->オリジナル) /