All Projects → WMSmile → datePicker

WMSmile / datePicker

Licence: other
时间选择器,包含年月、年月日、年月日时分秒、

Programming Languages

objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to datePicker

mobile-select-date
手机联动选择日期
Stars: ✭ 41 (+192.86%)
Mutual labels:  datepicker
ng-persian-datepicker
Persian datepicker for angular 12+
Stars: ✭ 62 (+342.86%)
Mutual labels:  datepicker
datepicker
A simple datepicker with Chakra-UI and date-fns
Stars: ✭ 140 (+900%)
Mutual labels:  datepicker
react-jewish-datepicker
React jewish datepicker
Stars: ✭ 41 (+192.86%)
Mutual labels:  datepicker
iOSProjects
It's project that contains different applications developed with Swift 5.7 👨‍💻👩🏼‍💻🧑🏿‍💻
Stars: ✭ 122 (+771.43%)
Mutual labels:  datepicker
react-dates
An easily internationalizable, mobile-friendly datepicker library for the web
Stars: ✭ 12,032 (+85842.86%)
Mutual labels:  datepicker
ic-datepicker
Angular (2+) datepicker component
Stars: ✭ 27 (+92.86%)
Mutual labels:  datepicker
flatpickr-rails
This gem packages flatpickr's assets for drop-in use in Rails applications.
Stars: ✭ 29 (+107.14%)
Mutual labels:  datepicker
Blazor.PersianDatePicker
A free JavaScript Jalali (Persian) and Gregorian (Miladi) dual datepicker library for Blazor applications
Stars: ✭ 40 (+185.71%)
Mutual labels:  datepicker
jquery-datepicker
A full-featured datepicker jquery plugin
Stars: ✭ 35 (+150%)
Mutual labels:  datepicker
react-calendar
A no dependencies, lightweight and feature-rich ⚡ calendar component for react.
Stars: ✭ 68 (+385.71%)
Mutual labels:  datepicker
tailwind-datepicker
A Tailwind CSS datepicker built with vanilla JavaScript
Stars: ✭ 105 (+650%)
Mutual labels:  datepicker
persian-mobile-datepicker
Modern React Persian Mobile Date and Time picker
Stars: ✭ 93 (+564.29%)
Mutual labels:  datepicker
vue2-persian-datepicker
A vue component that provides datepicker for persian developers
Stars: ✭ 100 (+614.29%)
Mutual labels:  datepicker
yii2-datetime-widgets
Datetime widgets for Yii2
Stars: ✭ 22 (+57.14%)
Mutual labels:  datepicker
RPicker
Simple and Easy-to-Use iOS Swift Date and Options Picker
Stars: ✭ 130 (+828.57%)
Mutual labels:  datepicker
NodaTimePicker
A Date/Time picker component library for Blazor using NodaTime
Stars: ✭ 49 (+250%)
Mutual labels:  datepicker
silverware-calendar
SilverWare Calendar Module
Stars: ✭ 15 (+7.14%)
Mutual labels:  datepicker
rn-date-range
date picker component for react native
Stars: ✭ 16 (+14.29%)
Mutual labels:  datepicker
vue3-date-time-picker
Datepicker component for Vue 3
Stars: ✭ 157 (+1021.43%)
Mutual labels:  datepicker

datePicker

主要功能是 :实现四种时间选择器的模式

     WMDateStyle_YearMonthDayHourMinute //年月日时分
     WMDateStyle_YearMonthDay,//年月日
     WMDateStyle_MonthDayHourMinute,//月日时分
     WMDateStyle_HourMinute//时分

可以加上时间限制,不可选为红色,可选为黑色

imageimageimage

WMCustomDatePicker.m中可以修改一下内容

#define DATEPICKER_interval 1//设置分钟时间间隔
#define DATEMAXFONT 20 //修改最大的文字大小
//改变颜色
#define DATE_GRAY [UIColor redColor];//不可选的状态
#define DATE_BLACK [UIColor blackColor];//可选状态

使用说明:

    _TF = [[UITextField alloc]initWithFrame:CGRectMake(20, 50, 300, 100)];
    _TF.placeholder = @"请输入时间";
    _TF.layer.cornerRadius = 4;
    _TF.layer.borderColor = [UIColor blackColor].CGColor;
    _TF.layer.borderWidth = 0.5f;
    [self.view addSubview:_TF];

    /*
     可以根据不同的情况进行定义;
     设置字体的大小
     设置分钟的间隔
     同意在WMCustomDatePicker。m文件里面修改
     可以设置最大的和最小的时间
    
    武猛创作 (参考uudate的源代码 )在此感谢uuDatepicker的作者    
     */
    
    WMCustomDatePicker *picker = [[WMCustomDatePicker alloc]initWithframe:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 300) Delegate:self PickerStyle:WMDateStyle_YearMonthDayHourMinute];
    picker.minLimitDate = [NSDate date];
    picker.maxLimitDate = [NSDate dateWithTimeIntervalSinceNow:24*60*60*30];
    _TF.inputView = picker;
    
    /*
     
     WMDateStyle_YearMonthDayHourMinute = 0,
     WMDateStyle_YearMonthDay,
     WMDateStyle_MonthDayHourMinute,
     WMDateStyle_HourMinute
     
     
     可以设置多种模式再次我只是演示了一种方法的使用
     其他的模式类似哦!
     希望亲们给我提出更好的意见哦
     欢迎如果发现问题请发邮件给我哦!![email protected]
     
     
     */

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].