- For iOS8+: 👍
use_frameworks!
pod 'FSCalendar'
- For iOS7+:
pod 'FSCalendar'
- For iOS8+
github "WenchaoIOS/FSCalendar"
- Drag all files under
FSCalendar
folder into your project. 👍
Only the methods marked "👍" support IBInspectable / IBDesignable feature. Have fun with Interface builder
- Drag an UIView object to ViewController Scene
- Change the
Custom Class
toFSCalendar
- Link
dataSource
anddelegate
to the ViewController
- Finally, you should implement
FSCalendarDataSource
andFSCalendarDelegate
in ViewController.m
@property (weak , nonatomic) FSCalendar *calendar;
// In loadView(Recommended) 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;
- To use
FSCalendar
in swift, you need to Create Bridge Header first.
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
calendar.identifier = NSCalendarIdentifierIndian;
calendar.identifier = NSCalendarIdentifierPesian;
calendar.identifier = NSCalendarIdentifierHebrew;
calendar.identifier = NSCalendarIdentifierIslamic;
- To view more usage, download the zip file and read the example.
- Or your could refer to this document
- Star this repo.
- Send your calendar screenshot or
itunes link address
here.
- Email:
f33chobits@gmail.com
FSCalendar is available under the MIT license. See the LICENSE file for more info.