Latest 0.2.0
Homepage https://github.com/wws19125/WSDatePicker
License MIT
Platforms ios 7.0
Authors

CI Status
Version
License
Platform

Example

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

    #import <WSDatePicker/WSDatePicer.h>

    /// instance
    WSDatePickerController *b = [WSDatePickerController new];
    /// set type as you like
    b.pickerType = WSDatePickerTypeYEARANDMONTHANDDAY;

    /// set default date
    NSDateFormatter *format = [NSDateFormatter new];
    [format setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    NSDate *dt = [format dateFromString:@"2016-12-12 12:12:12"];
    b.defaultDate = dt;

    ///callback block
    [b setCallback:^(NSInteger year, NSInteger month, NSInteger day, NSInteger hour, NSInteger minute, NSInteger second) {
        NSLog(@"%d  %d  %d  %d  %d  %d",year,month,day,hour,minute,second);
    }];
    /// ok,last, present
    [self presentViewController:b animated:YES completion:nil customerAnimated:YES];

Requirements

Installation

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

pod "WSDatePicker"

Author

王的世界, [email protected]

License

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

Latest podspec

{
    "name": "WSDatePicker",
    "version": "0.2.0",
    "summary": "DatePicker for iOS",
    "description": "DatePicker For iOS, You can use this freely.",
    "homepage": "https://github.com/wws19125/WSDatePicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u738bu7684u4e16u754c": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wws19125/WSDatePicker.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "WSDatePicker/WSDatePicker/**/*"
}

Pin It on Pinterest

Share This