GithubHelp home page GithubHelp logo

mrhyh / hzqdatepickerview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huzhiqin/hzqdatepickerview

0.0 2.0 0.0 254 KB

HZQDatePickerView(自定义时间选择器,包括开始日期和结束日期两种类型)

Objective-C 100.00%

hzqdatepickerview's Introduction

HZQDatePickerView

HZQDatePickerView(自定义时间选择器,包括开始日期和结束日期两种类型)

*有劳大家的小手抖一抖,给颗小星星★★~!谢谢!^ —— ^

*已完美适配所有设备,修复部分小细节,绿色、安全!。谢谢大家的支持和反馈,如有任何问题请留言。

*QQ:276635035

// 效果图

使用方法:

注:要设置只显示年月日或年月日、时分秒的可在XIB里对datePicker的Mode进行设置。
// 开始时间

[self setupDateView:DateTypeOfStart];

// 结束时间    

[self setupDateView:DateTypeOfEnd];

- (void)setupDateView:(DateType)type {

    _pikerView = [HZQDatePickerView instanceDatePickerView];
    
    _pikerView.frame = CGRectMake(0, 0, ScreenRectWidth, ScreenRectHeight + 20);
    
    [_pikerView setBackgroundColor:[UIColor clearColor]];
    
    _pikerView.delegate = self;
    
    _pikerView.type = type;
    
    // 今天起之后的日期
    
    [_pikerView.datePickerView setMinimumDate:[NSDate date]];
    
    // 今天之前的日期
    
//    [_pikerView.datePickerView setMaximumDate:[NSDate date]];
    
    [self.view addSubview:_pikerView];

}

- (void)getSelectDate:(NSString *)date type:(DateType)type {

    NSLog(@"%d - %@", type, date);

}

hzqdatepickerview's People

Watchers

James Cloos avatar 与狼共舞 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.