项目
在 GitHub 查看
ipraba/EPCalendarPicker
关于
使用 Swift 编写的 iOS 彩色日历。
效率与自动化可以做什么
- Single selection and multiselection option
- Customize the date colors in the picker
- Today Indication and Scrolling to today
- Delegates that return the selected dates
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
EPCalendarPicker
Colorful calendar component for iOS written in Swift
Preview

Installation
CocoaPods
EPCalendarPicker is available on CocoaPods. Just add the following to your project Podfile:
pod 'EPCalendarPicker'
use_frameworks!
Manual Installation
Just drag and drop the EPCalendarPicker folder into your project
Demo
Stream the demo of this example in browser using Appetize.io
Features
EPcalendarPicker provides lot of features which lets you customize the picker
- Single selection and multiselection option
- Customize the date colors in the picker
- Today Indication and Scrolling to today
- Delegates that return the selected dates
- Ability to set the starting and ending year of the calendar
Initialization
You can init the picker as follows
let calendarPicker = EPCalendarPicker(startYear: 2015, endYear: 2017, multiSelection: true, selectedDates: nil)
calendarPicker.calendarDelegate = self
let navigationController = UINavigationController(rootViewController: calendarPicker)
self.presentViewController(navigationController, animated: true, completion: nil)
Properties
| Name | Description |
|---|---|
tintColor |
Tintcolor of the navigationBar bar buttons |
weekdayTintColor |
Weekday title and date color |
weekendTintColor |
Weekend title and date color |
todayTintColor |
Today bar button the today's date color |
dateSelectionColor |
Selected date color |
monthTitleColor |
Month title color |
multiSelectEnabled |
Boolean value indicating whether multiselection enabled or not |
calendarDelegate |
Delegate |
startYear |
Starting year of the calendar |
endYear |
Ending year of the calendar |
startDate |
Dates previous to this startDate cannot be selected |
highlightsToday |
Boolean that highlights the today date |
hideDaysFromOtherMonth |
Hides the days of other months with empty spaces |
backgroundImage |
Background Image of the calendar |
backgroundColor |
Background Color of the Calendar |
dayDisabledTintColor |
Disabled day tint color |
Delegates
EPCalendarPicker provides you three delegates for getting the callbacks on the picker
optional func epCalendarPicker(_: EPCalendarPicker, didCancel error : NSError)
optional func epCalendarPicker(_: EPCalendarPicker, didSelectDate date : NSDate)
optional func epCalendarPicker(_: EPCalendarPicker, didSelectMultipleDate dates : [NSDate])
Credits
Thanks to Stefan Sturm for this super extensions to this component
Walkthrough

License
EPCalendarPicker is available under the MIT license. See the LICENSE file for more info.
Contributors
探索相关项目
加载中…