MattLLLLL/MDatePickerView


Quick and easy date picker.

License: MIT

Language: Swift

Keywords: cocopods, date, datepicker, ios, iphone, picker, pickerview, swift


License Platform Build Status

Requirements

  • iOS 9.0
  • Xcode 9
  • Swift 4.0

Installation

You can install MDatePickerView in several ways:

Add source files to your project.

  • Use CocoaPods:
pod 'MDatePickerView'

Usage

import MDatePickerView

Usage example

lazy var MDate : MDatePickerView = {
        let mdate = MDatePickerView()
        mdate.Color = .gray
        mdate.delegate = self
        mdate.from = 1980
        mdate.to = 2100
        return mdate
    }()

Adopt the MDatePickerViewDelegate protocol in your view controller, e.g.

extension ViewController : MDatePickerViewDelegate {
    func mdatePickerView(selectDate: Date) {
        let formatter = DateFormatter()
        formatter.dateFormat = "yyyy - MM - dd"
        let date = formatter.string(from: selectDate)
        Label.text = date
    }
}

What's next

  • Any suggestions?

Contribution

  • If you found a bug, open an issue
  • If you have a feature request, open an issue
  • If you want to contribute, submit a pull request
  • If you have any issue or want help, please drop me a mail on bowei685@gmail.com

License

MDatePickerView is distributed under the MIT license. See LICENSE for details.

Project Statistics

Sourcerank 5
Repository Size 39.1 KB
Stars 258
Forks 13
Watchers 6
Open issues 1
Dependencies 0
Tags 2
Created
Last updated
Last pushed

Packages Referencing this Repo

MDatePickerView
MDatePickerView is a pull&push to refresh library written is Swift
Latest release 1.2.2 - Updated - 258 stars

Recent Tags See all

1.2.2 January 13, 2020
0.0.1 January 13, 2020

Something wrong with this page? Make a suggestion

Last synced: 2020-01-16 08:46:24 UTC

Login to resync this repository