Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/masashi-sutou/msdatepickercell

MSDatePickerCell is customized UITableViewCell for datePickerView.
https://github.com/masashi-sutou/msdatepickercell

Last synced: about 1 month ago
JSON representation

MSDatePickerCell is customized UITableViewCell for datePickerView.

Awesome Lists containing this project

README

        

MSDatePickerCell
====

## Overview
### DatePickerStyle

.ymd | .ym | .md
--- | --- | ---
| |

## Requirement
- Xcode 8
- Swift 3
- iOS 8.0 or later

## Usage
```Swift
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = MSDatePickerCell(style: .ymd) { (date: Date) in
// Do Something
}
return cell
}

override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return MSDatePickerCell.preferredHeight()
}
```

## Installation
#### [CocoaPods](https://cocoapods.org/)
Add the following line to your Podfile:
```ruby
use_frameworks!

target 'YOUR_TARGET_NAME' do
pod "MSDatePickerCell"
end
```

#### [Carthage](https://github.com/Carthage/Carthage)
Add the following line to your Cartfile:
```ruby
github "masashi-sutou/MSDatePickerCell"
```

## Licence
MSDatePickerCell is available under the MIT license. See the LICENSE file for more info.