cool hit counter Objective-C a custom time picker_Intefrankly

Objective-C a custom time picker


Sometimes we use UIDatePicker in our projects, but there are too few styles to meet the project needs, so we wrote our own time control, so you can check it out if you need it! git address:https://github.com/destinyzhao/DatePicker/tree/master

Simulator Screen Shot - iPhone X - 2018-05-28 at 14.44.36.png

 The idea is to use a UIPickerView with a simple loop algorithm to achieve a circular scrolling effect.

How to use

 //year-month-day-hour-minute
  JXDatePickerView *datepicker = [[JXDatePickerView alloc] initWithDateStyle:DateStyleShowYearMonthDayHourMinute CompleteBlock:^(NSDate *selectDate) {
                
                NSString *dateString = [selectDate stringWithFormat:@"yyyy-MM-dd HH:mm"];
                NSLog(@"Date selected:%@",dateString);
                [btn setTitle:dateString forState:UIControlStateNormal];
            }];
 datepicker.dateLabelColor = [UIColor orangeColor];//year-month-day-hour-minute color
 datepicker.datePickerColor = [UIColor blackColor];//scroller date color
[datepicker show];

Recommended>>
1、Emberjs 340beta2 released JSWeb application development framework
2、Big drop today another coin goes to zero
3、BYD continuous fury cloud rail has been sold abroad all independent property rights Tesla has pressure
4、Document Guangdong Provincial Peoples Government Notice on the Issuance of the Implementation Plan for the Expansion and Upgrading of Information Consumption in Guangdong Province
5、West S04E05

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号