欢迎光临
我们一直在努力

自定的时间选择器-HcdDateTimePicker,选择器

建站超值云服务器,限时71元/月

自定的时间选择器-HcdDateTimePicker,选择器

项目介绍:

HcdDateTimePicker
https://github.com/Jvaeyhcd/HcdDateTimePicker

目前支持3种样式的时间选择器。
A beautiful DateTimePicker.


Requirements

  • Xcode 6 or higher
  • iOS 7.0 or higher
  • ARC

InstallationManual InstallAll you need to do is drop HCDDateTimePicker files into your project, and add #include HCDDateTimePicker.h to the top of classes that will use it.


CocoapodsChange to the directory of your Xcode project:
$ cd /path/to/YourProject$ touch Podfile$ edit PodfileEdit your project’s Podfile and add the following:
pod ‘HcdDateTimePicker’Install into your Xcode project:
pod setuppod install

Example Usage[Objective-C] 查看源文件 复制代码

HcdDateTimePickerView *dateTimePickerView = [[HcdDateTimePickerView alloc] initWithDatePickerMode:DatePickerDateMode defaultDateTime:[[NSDate alloc]initWithTimeIntervalSinceNow:0]];
dateTimePickerView.clickedOkBtn = ^(NSString * datetimeStr){
    NSLog(@"%@", datetimeStr);
};
[self.view addSubview:dateTimePickerView];
[dateTimePickerView showHcdDateTimePicker];

DEMO直接下载:

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 自定的时间选择器-HcdDateTimePicker,选择器
分享到: 更多 (0)