Latest 0.1.8
Homepage https://github.com/lyahdav/LIYDateTimePicker
License MIT
Platforms ios 7.0, requires ARC
Dependencies MZDayPicker, MSCollectionViewCalendarLayout, UIColor-HexString, Masonry, ObjectiveSugar
Authors

Version
License
Platform

Calendar
Calendar

Usage

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

All you need to use this in your app is:

LIYDateTimePickerViewController *vc = [LIYDateTimePickerViewController timePickerForDate:[NSDate date] delegate:self];
[self.navigationController pushViewController:vc animated:YES];

And implement the LIYDateTimePickerDelegate:

- (void)dateTimePicker:(LIYDateTimePickerViewController *)dateTimePickerViewController didSelectDate:(NSDate *)selectedDate {
    NSLog(@"Selected date: %@", [selectedDate description]);
    [self.navigationController popViewControllerAnimated:YES];
}

Requirements

LIYDateTimePicker requires either iOS 7.x and above.

Installation

Simply add the following lines to your Podfile:

pod 'JTCalendar', :git => 'https://github.com/kgellci/JTCalendar.git', :branch => 'master' # This must be placed before LIYDateTimePicker
pod 'LIYDateTimePicker', :git => 'https://github.com/lyahdav/LIYDateTimePicker.git'

Author

Liron Yahdav

License

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

Attribution

Thanks to Icons8 for the <a
href="Checklist”>http://icons8.com/web-app/3979/Checklist”>Checklist icon

Latest podspec

{
    "name": "LIYDateTimePicker",
    "version": "0.1.8",
    "summary": "iOS view controller for picking a date and time.",
    "description": "                       An iOS view controller for picking a date and time in way that doesn't suckn",
    "homepage": "https://github.com/lyahdav/LIYDateTimePicker",
    "screenshots": "https://raw.githubusercontent.com/lyahdav/LIYDateTimePicker/master/Screens/Screen1.png",
    "license": "MIT",
    "authors": {
        "Liron Yahdav": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lyahdav/LIYDateTimePicker.git",
        "tag": "0.1.8"
    },
    "social_media_url": "https://twitter.com/lyahdav",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Classes/**/*.{h,m}",
    "dependencies": {
        "MZDayPicker": [],
        "MSCollectionViewCalendarLayout": [],
        "UIColor-HexString": [],
        "Masonry": [],
        "ObjectiveSugar": []
    }
}

Pin It on Pinterest

Share This