Giter VIP home page Giter VIP logo

Comments (9)

feige-2011 avatar feige-2011 commented on June 1, 2024

我有同样的问题,不知道是不是版本问题

from pgdatepicker.

lovely71 avatar lovely71 commented on June 1, 2024

追加,只要min-maxdate中不包含当前日期,会导致年份月份选择出现问题,月份和年份跳过选中方法,导致日期列无法刷新数据源
datePicker.minimumDate = [formatter dateFromString:@"2015-9-30"];
datePicker.maximumDate = [formatter dateFromString:@"2017-10-1"];

from pgdatepicker.

xiaozhuxiong121 avatar xiaozhuxiong121 commented on June 1, 2024

更新到1.5.10版本试试

from pgdatepicker.

lovely71 avatar lovely71 commented on June 1, 2024

datePicker.minimumDate = [formatter dateFromString:@"2015-9-30"];
datePicker.maximumDate = [formatter dateFromString:@"2015-10-1"];
代码如上,1.5.10版本中初始化后9月出现了31号

from pgdatepicker.

xiaozhuxiong121 avatar xiaozhuxiong121 commented on June 1, 2024

推到了1.5.11上,你在试试还有问题没

from pgdatepicker.

lovely71 avatar lovely71 commented on June 1, 2024

完美解决问题,提一个小改善,希望有时间解决吧
date.minDate = [formatter dateFromString:@"2015-9-30"];
date.maxDate = [formatter dateFromString:@"2016-10-02"];
设置如上时,初始化自动选中2016-01-01;
date.minDate = [formatter dateFromString:@"2015-9-30"];
date.maxDate = [formatter dateFromString:@"2016-10-02"];
这时自动选中2017-01-06,应该是由于年份与今天相同,所以还是进了设置选中的判断,但是month判断是否在monthlist的时候为false,所以默认值1

更新的非常快,赞

from pgdatepicker.

lovely71 avatar lovely71 commented on June 1, 2024

不好意思还有有个bug
date.minDate = [formatter dateFromString:@"2015-9-30"];
date.maxDate = [formatter dateFromString:@"2016-12-02"];
这时自动选中2016-01-01,点击确定,日期为输出为2015-11-30

from pgdatepicker.

xiaozhuxiong121 avatar xiaozhuxiong121 commented on June 1, 2024

没事的,更新到1.5.12试试

from pgdatepicker.

lovely71 avatar lovely71 commented on June 1, 2024

ok了

from pgdatepicker.

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.