Go to file
f33chobits c863aa6bb7 Add delegate methods
1. Add delegate methods
	1). `calendar:appearance:titleDefaultColorForDate:`
        2). `calendar:appearance:subtitleDefaultColorForDate:`

2. Version bump

3. Add delegate appearance example
2015-10-04 10:27:45 +08:00
Example Add delegate methods 2015-10-04 10:27:45 +08:00
FSCalendar Add delegate methods 2015-10-04 10:27:45 +08:00
SwiftExample Merge branch 'pagingEnable' 2015-09-27 19:53:30 +08:00
.gitignore Some optimization 2015-09-30 22:26:53 +08:00
FSCalendar.podspec Add delegate methods 2015-10-04 10:27:45 +08:00
LICENSE Add delegate methods 2015-10-04 10:27:45 +08:00
MOREUSAGE.md Add delegate methods 2015-10-04 10:27:45 +08:00
README.md Add delegate methods 2015-10-04 10:27:45 +08:00

README.md

fscalendar

Version License Platform Carthage compatible

fscalendar

Installation

Cocoapods:

  • For iOS8+: 👍
use_frameworks!
pod 'FSCalendar'
  • For iOS7+:
pod 'FSCalendar'

Carthage:

  • For iOS8+
github "WenchaoIOS/FSCalendar"

Manually:

  • Drag all files under FSCalendar folder into your project. 👍

Support IBInspectable / IBDesignable

Only the methods marked "👍" support IBInspectable / IBDesignable feature. Have fun with Interface builder

Setup

  1. Drag an UIView object to ViewController Scene
  2. Change the Custom Class to FSCalendar
  3. Link dataSource and delegate to the ViewController

fscalendar-ib

  1. Finally, you should implement FSCalendarDataSource and FSCalendarDelegate in ViewController.m

Or use code

@property (weak , nonatomic) FSCalendar *calendar;
// In loadView or viewDidLoad
FSCalendar *calendar = [[FSCalendar alloc] initWithFrame:CGRectMake(0, 0, 320, 300)];
calendar.dataSource = self;
calendar.delegate = self;
[self.view addSubview:calendar];
self.calendar = calendar;

Or swift

private weak var calendar: FSCalendar!
// In loadView or viewDidLoad
let calendar = FSCalendar(frame: CGRect(x: 0, y: 0, width: 320, height: 300))
calendar.dataSource = self
calendar.delegate = self
view.addSubview(calendar)
self.calendar = calendar

More Usage

  • To view more usage, download the zip file and read the example.
  • Or your could refer to this document

If you like this repo

  • Star this repo.
  • Send your calendar screenshot to #2, or the itunes url of the app.

Contact me

  • Email: f33chobits@gmail.com
  • Skype: wenchao.ding

License

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