Comments (9)
我有同样的问题,不知道是不是版本问题
from pgdatepicker.
追加,只要min-maxdate中不包含当前日期,会导致年份月份选择出现问题,月份和年份跳过选中方法,导致日期列无法刷新数据源
datePicker.minimumDate = [formatter dateFromString:@"2015-9-30"];
datePicker.maximumDate = [formatter dateFromString:@"2017-10-1"];
from pgdatepicker.
更新到1.5.10
版本试试
from pgdatepicker.
datePicker.minimumDate = [formatter dateFromString:@"2015-9-30"];
datePicker.maximumDate = [formatter dateFromString:@"2015-10-1"];
代码如上,1.5.10版本中初始化后9月出现了31号
from pgdatepicker.
推到了1.5.11
上,你在试试还有问题没
from pgdatepicker.
完美解决问题,提一个小改善,希望有时间解决吧
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.
不好意思还有有个bug
date.minDate = [formatter dateFromString:@"2015-9-30"];
date.maxDate = [formatter dateFromString:@"2016-12-02"];
这时自动选中2016-01-01,点击确定,日期为输出为2015-11-30
from pgdatepicker.
没事的,更新到1.5.12
试试
from pgdatepicker.
ok了
from pgdatepicker.
Related Issues (20)
- 希望支持下xx年xx周
- 渲染很耗时 HOT 4
- 排查了代码 发现这里是这里很耗性能 : daysWithMonthInThisYear HOT 1
- 初始化加载的时候,CPU的消耗99%
- 自定义数据
- 设置在cell中,点击按钮调出一次,第二次调不出来了 HOT 1
- 数据没了
- 问题咨询 HOT 1
- 跨年显示问题
- cancel 和 sure 的内容改不了??点了sure按钮又没有回调??废了废了
- 想要只显示日时分可以吗
- 星期bug HOT 1
- 年月日中 day 显示不正确的问题,望修复
- 能否加上按周选择
- 在日期选择滚动的时候,能不能加上震动,就像系统的datePicker一样 HOT 1
- 自定义picker滚动会超出范围,会造成选中行空白
- - (NSInteger)howManyDaysWithMonthInThisYear:(NSInteger)year withMonth:(NSInteger)month 优化
- 希望增加一个几点到几点的选择
- 偶发 - 打开时间控件出现异常闪退
- minimumDate设置影响布局问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgdatepicker.