Latest 1.1.1
Homepage https://github.com/Jvaeyhcd/HcdDateTimePicker
License MIT
Platforms ios 7.0, requires ARC
Authors

Version
License
Platform
Tag
Author

A beautiful DateTimePicker.

Alt Text

Requirements

  • Xcode 6 or higher
  • iOS 7.0 or higher
  • ARC

Installation

Manual Install

All you need to do is drop HCDDateTimePicker files into your project, and add #include HCDDateTimePicker.h to the top of classes that will use it.

Cocoapods

Change to the directory of your Xcode project:

$ cd /path/to/YourProject
$ touch Podfile
$ edit Podfile

Edit your project’s Podfile and add the following:

pod 'HcdDateTimePicker'

Install into your Xcode project:

pod setup
pod install

Example

HcdDateTimePickerView *dateTimePickerView = [[HcdDateTimePickerView alloc] initWithDatePickerMode:DatePickerDateMode defaultDateTime:[[NSDate alloc]initWithTimeIntervalSinceNow:0]];
dateTimePickerView.clickedOkBtn = ^(NSString * datetimeStr){
    NSLog(@"%@", datetimeStr);
};
[self.view addSubview:dateTimePickerView];
[dateTimePickerView showHcdDateTimePicker];

TODO

  • [x] DatePickerDateMode
  • [x] DatePickerTimeMode
  • [x] DatePickerDateTimeMode
  • [x] DatePickerYearMonthMode
  • [x] DatePickerMonthDayMode
  • [x] DatePickerHourMinuteMode
  • [x] DatePickerDateHourMinuteMode

Contact me

If you find some bugs or you have some suggest, please contact me or post me an issue.Thank you!

Latest podspec

{
    "name": "HcdDateTimePicker",
    "version": "1.1.1",
    "summary": "A beautiful DateTimePicker.",
    "description": "u4e00u4e2au81eau5b9au4e49u4eceu5e95u90e8u5f39u51fau7684u65f6u95f4u9009u62e9u5668uff0cu652fu6301u591au79cdu6837u5f0fu7684u65f6u95f4u9009u62e9",
    "homepage": "https://github.com/Jvaeyhcd/HcdDateTimePicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jvaeyhcd": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/Jvaeyhcd/HcdDateTimePicker.git",
        "tag": "1.1.1"
    },
    "source_files": "HcdDateTimePicker/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This