Git Product home page Git Product logo

bapickview's Issues

关于pickerview的两个问题

1、pickerview的日期中如果先滑动3月31日,在滑动到2月,2月的日期有更新,不滑动日期的话,点击确定会显示2月31号、在滚动的年月的时候没有更新日期。
2、自定义pickerview中,滑动的联动效果体验很差,没有原生pickerview的流畅,可以对比参照一下,建议滚动完一级之后再滚动二级,类推、最好把动画去掉,有动画总感觉有一下卡顿。

最终显示的数值有误

在自定义DatePicker中

    // 自定义:最大最小日期格式
    if (type == BAKit_CustomDatePickerDateTypeYMD)
    {
        NSDateFormatter *format = [NSDateFormatter ba_setupDateFormatterWithYMD];
        NSDate *today = [[NSDate alloc]init];
        [format setDateFormat:@"yyyy-MM-dd"];
        
        // 最小时间,当前时间
        mindDate = [format dateFromString:[format stringFromDate:today]];
        
        NSTimeInterval oneDay = 24 * 60 * 60;
        // 最大时间,当前时间+180天
        NSDate *theDay = [today initWithTimeIntervalSinceNow:oneDay * 180];
        maxdDate = [format dateFromString:[format stringFromDate:theDay]];
        
    }

如果我仅滑动年份,最终显示的时间超出我设置的时间

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.