Latest 3.0.0
Homepage https://github.com/alexanderedge/MonthYearPicker
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

Version
License
Platform

This is a UIControl subclass that allows date selection using month / year, unlike UIDatePicker which displays year, month, and day. This makes MonthYearPicker useful for credit card expiry dates, for example. It is locale-aware and shows localised values.

Screenshot

Usage

Initialise MonthYearPicker in the same way you would a UIPickerView instance.

let picker = MonthYearPickerView(frame: CGRect(origin: CGPoint(x: 0, y: (view.bounds.height - 216) / 2), size: CGSize(width: view.bounds.width, height: 216)))
picker.addTarget(self, action: #selector(dateChanged(_:)), for: .valueChanged)
view.addSubview(picker)

Requirements

iOS 8.0 or later

Installation

MonthYearPicker is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MonthYearPicker"

Author

Alexander Edge, [email protected]

License

MonthYearPicker is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MonthYearPicker",
    "version": "3.0.0",
    "summary": "A UIControl subclass that allows users to select month and year",
    "description": "`UIDatePicker` doesn't have a mode for month/year, which is commonly usednin credit card forms. MonthYearPicker is a `UIControl` subclass that displaysn localised months and years.",
    "homepage": "https://github.com/alexanderedge/MonthYearPicker",
    "license": "MIT",
    "authors": {
        "Alexander Edge": "[email protected]"
    },
    "source": {
        "git": "https://github.com/alexanderedge/MonthYearPicker.git",
        "tag": "3.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Sources/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This