Latest 0.1.0
Homepage https://github.com/zhhlmr/ZHDatePicker
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

A simple custom iOS date picker.

Alt text

Animation

Simply slide up from the bottom

Delegate

Whenever user select on year/month/day , will info delegate with all new value.

@protocol ZHDatePickerDelegate <NSObject>

@optional

- (void)didSelectDateWithDate:(NSDate *)date year:(NSInteger)year month:(NSInteger)month day:(NSInteger)day;
@end

Properties

@property(nonatomic, assign) NSInteger minYear;//default : 1960

@property(nonatomic, assign) NSInteger maxYear;//default : 100 + today's year

Display Mode:

typedef enum {
    ZHDatePickerDisplayModeFreeStyle = 0,
    ZHDatePickerDisplayModelBeforeCurrent = 1
} ZHDatePickerDisplayMode;
  • ZHDatePickerDisplayModeFreeStyle

    Select date whatever you want from default setting (1960 – 100 years after current year)

  • ZHDatePickerDisplayModelBeforeCurrent

    Set the maximun Date to today’s date , and limit user’s selection from 1960 – current year

TODO

  • Slide position
  • Time selection
  • Background and Text Color

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod "ZHDatePicker"

Author

zhhlmr, [email protected]

License

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

Latest podspec

{
    "name": "ZHDatePicker",
    "version": "0.1.0",
    "summary": "A simple custom iOS date picker for year/month/day selection",
    "description": "Simple usage for year/month/day selection , currently displaying in Chinese .",
    "homepage": "https://github.com/zhhlmr/ZHDatePicker",
    "license": "MIT",
    "authors": {
        "zhhlmr": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zhhlmr/ZHDatePicker.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ZHDatePicker/Classes/**/*"
}

Pin It on Pinterest

Share This