Latest 0.1.0
Homepage https://github.com/949478479/LXDateTimePicker
License MIT
Platforms ios 8.0
Authors

支持【年】、【月】、【年月】、【年月日】、【时分】、【年月日时分】的日期选择器。

LXDateTimePicker

pod 'LXDateTimePicker'
import LXDateTimePicker

let picker = DateTimePicker { (config) in
    config.mode = .hourMinute
    config.use12HourClock = true
}

addSubview(picker)
let dateComponents = picker.dateComponents

print(dateComponents.date)
print(dateComponents.year)
print(dateComponents.month)
print(dateComponents.day)
print(dateComponents.weekDay)
print(dateComponents.hour)
print(dateComponents.minute)
print(dateComponents.period)

Latest podspec

{
    "name": "LXDateTimePicker",
    "version": "0.1.0",
    "summary": "u652fu6301u5e74u6708u65e5u65f6u5206u7684u65e5u671fu9009u62e9u5668.",
    "homepage": "https://github.com/949478479/LXDateTimePicker",
    "license": "MIT",
    "authors": {
        "u5415u5c0fu603c": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/949478479/LXDateTimePicker.git",
        "tag": "0.1.0"
    },
    "source_files": "LXDateTimePicker/*.{swift}"
}

Pin It on Pinterest

Share This