测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布日期最新发布 | 2014年12月 |
由 Liron Yahdav,Joe Frank 维护。
依赖项 | |
MZDayPicker | >= 0 |
MSCollectionViewCalendarLayout | >= 0 |
UIColor-HexString | >= 0 |
Masonry | >= 0 |
ObjectiveSugar | >= 0 |
要运行示例项目;克隆仓库,然后首先从 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 文件。