Latest 1.0
Homepage https://github.com/NSLogxiaoyu3/ZYDatePickerController
License MIT
Platforms ios 11.4, requires ARC
Dependencies Masonry
Frameworks Foundation, UIKit
Authors

ZYDatePickerController

Just look at the Example and use!

You can use block or delegate.

Screenshots

ZYDatePickController

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries.

pod "ZYDatePickerController"

Usage

It is quite easy to use, you can use this by two methods, one is for block, another is for delegate.

block


__weak typeof(self) weakSelf = self;
ZYDatePickerController *datePickController = [[ZYDatePickerController alloc] initWithMessage:NSLocalizedString(@"pleaseChooseDate", nil) dateFormat:@"yyyy-MM-dd" handler:^(NSString *dateString) {
    __strong typeof(weakSelf) strongSelf = weakSelf;
    strongSelf.textField.text = dateString;
}];
[self presentViewController:datePickController animated:YES completion:nil];

delegate

the delegate example comes sooner

License

MIT LICENSE

Copyright (C)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Latest podspec

{
    "name": "ZYDatePickController",
    "version": "1.0",
    "platforms": {
        "ios": "11.4"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "A DatePickController that likes the UIAlertController.",
    "homepage": "https://github.com/NSLogxiaoyu3/ZYDatePickerController",
    "authors": {
        "NSLogxiaoyu3": "[email protected]"
    },
    "source": {
        "git": "https://github.com/NSLogxiaoyu3/ZYDatePickerController.git",
        "tag": "v1.0"
    },
    "source_files": "ZYDatePickerController/*.{h,m}",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true,
    "dependencies": {
        "Masonry": []
    },
    "deprecated": true
}

Pin It on Pinterest

Share This