LIYDateTimePicker 0.1.8

LIYDateTimePicker 0.1.8

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布日期最新发布2014年12月

Liron YahdavJoe Frank 维护。



 
依赖项
MZDayPicker>= 0
MSCollectionViewCalendarLayout>= 0
UIColor-HexString>= 0
Masonry>= 0
ObjectiveSugar>= 0
 


Calendar Calendar

使用方法

要运行示例项目;克隆仓库,然后首先从 Example 目录运行 pod install

您需要在您的应用程序中使用以下所有内容

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

并实现 LIYDateTimePickerDelegate

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

要求

LIYDateTimePicker 需要 iOS 7.x 及以上版本。

安装

只需将以下行添加到您的 Podfile 中

pod 'MZDayPicker', :git => 'https://github.com/lyahdav/MZDayPicker.git', :branch => 'hightlight_today'
pod 'LIYDateTimePicker'

注意:此 pod 需要 MZDayPicker 的分叉。不幸的是,根据 http://stackoverflow.com/a/17735833/62,您无法在 pod 中指定对 github 上 pod 的依赖。相反,您必须先添加上面显示的 MZDayPicker 分叉,然后再添加 LIYDateTimePicker。

作者

Liron Yahdav

许可证

LIYDateTimePicker 受 MIT 许可证的保护。有关更多信息,请参阅 LICENSE 文件。