Add -calendar:titleForDate: |
||
|---|---|---|
| Example | ||
| FSCalendar | ||
| SwiftExample | ||
| .gitignore | ||
| .travis.yml | ||
| FSCalendar.podspec | ||
| LICENSE | ||
| MOREUSAGE.md | ||
| README.md | ||
README.md
- 在您静静的离开之前,请确保点击了这个按钮<img style="margin-bottom:-12px"" width="72" alt="star" src="https://cloud.githubusercontent.com/assets/5186464/15383105/fcf9cdf0-1dc2-11e6-88db-bf221042a584.png">
- Before leaving quietly, please make sure you've taken care of this button very well <img style="margin-bottom:-12px"" width="72" alt="star" src="https://cloud.githubusercontent.com/assets/5186464/15383105/fcf9cdf0-1dc2-11e6-88db-bf221042a584.png">
中文介绍
Table of contents
Screenshots
iPhone
iPad
Working with AutoLayout and Orientation
Hide placeholder dates
Scope handle
Installation
CocoaPods:
- For iOS8+: 👍
use_frameworks!
pod 'FSCalendar'
- For iOS7+:
pod 'FSCalendar'
- Alternatively to give it a test run, run the command:
pod try FSCalendar
Carthage:
- For iOS8+
github "WenchaoD/FSCalendar"
Manually:
- Drag all files under
FSCalendarfolder into your project. 👍
Support IBInspectable / IBDesignable
Only the methods marked "👍" support IBInspectable / IBDesignable feature. Have fun with Interface builder
Setup
Use Interface Builder
- Drag an UIView object to ViewController Scene
- Change the
Custom ClasstoFSCalendar - Link
dataSourceanddelegateto the ViewController
- Finally, you should implement
FSCalendarDataSourceandFSCalendarDelegatein ViewController.m
Or use code
@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;
Or swift
- To use
FSCalendarin 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
Roll with Interface Builder
Advanced Usage
- To view more usage, download the zip file and read the example.
- Or you could refer to this document
- To view the full documentation, see CocoaPods Documentation
Support me via
打赏支持
License
FSCalendar is available under the MIT license. See the LICENSE file for more info.
Contributions
- Issues and pull requests are absolutely welcome.
- For code contributions, please follow Coding Guidelines for Cocoa
Author
- Email:
f33chobits@gmail.com - Twitter:
https://twitter.com/WenchaoD - 微博:
http://www.weibo.com/u/2231723463







