Giter VIP home page Giter VIP logo

Comments (5)

agiapp avatar agiapp commented on May 23, 2024

你好,不要传秒数就可以。
[BRDatePickerView showDatePickerWithTitle:@"请选择开始时间" dateType:UIDatePickerModeDateAndTime defaultSelValue:@"2018-03-27 00:00" minDateStr:@"2018-03-21 15:00" maxDateStr:@"2018-04-05 16:00" isAutoSelect:NO themeColor:nil resultBlock:^(NSString *selectValue) {
MYLog(@"------%@",selectValue);
}];

我下个版本修复一下这个bug,谢谢你的提醒

from brpickerview.

agiapp avatar agiapp commented on May 23, 2024

你好,我在原来的版本2.1.3上修复了这个bug。

  1. 注意:参数 defaultSelValue 值的格式要与 显示类型dateType 相互对应。
    UIDatePickerModeTime:HH:mm
    UIDatePickerModeDate:yyyy-MM-dd
    UIDatePickerModeDateAndTime:yyyy-MM-dd HH:mm
    UIDatePickerModeCountDownTimer:HH:mm
    如果参数 defaultSelValue 的值为空或值格式不正确时,我把defaultSelValue的值重置为了当前时间,就会默认选择到当前的时间上。不会再出现之前的崩溃现象。

  2. 参数 minDateStr 和 maxDateStr 的格式都是:yyyy-MM-dd HH:mm:ss
    格式错误时,最值不会生效。

from brpickerview.

WHaveFun avatar WHaveFun commented on May 23, 2024

好的我试试

from brpickerview.

WHaveFun avatar WHaveFun commented on May 23, 2024

[BRDatePickerView showDatePickerWithTitle:@"请选择开始时间" dateType:UIDatePickerModeDateAndTime defaultSelValue:@"" minDateStr:@"2018-03-24 18:00" maxDateStr:@"2018-03-31 18:00" isAutoSelect:NO themeColor:[UIColor redColor] resultBlock:^(NSString *selectValue) {
MYLog(@"------%@",selectValue);
2018-03-28 5 18 42
}];

时间设置上下限 无效。。。。

from brpickerview.

agiapp avatar agiapp commented on May 23, 2024

注意:参数 minDateStr 和 maxDateStr 的格式都是:yyyy-MM-dd HH:mm:ss(格式错误时,时间上下限不会生效)
[BRDatePickerView showDatePickerWithTitle:@"请选择开始时间" dateType:UIDatePickerModeDateAndTime defaultSelValue:@"" minDateStr:@"2018-03-24 18:00:00" maxDateStr:@"2018-03-31 18:00:00" isAutoSelect:NO themeColor:[UIColor redColor] resultBlock:^(NSString *selectValue) {
MYLog(@"------%@",selectValue);
}];

from brpickerview.

Related Issues (20)

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.