Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

时间选择的bug! #232

Closed
abcdezg opened this issue May 24, 2021 · 1 comment
Closed

时间选择的bug! #232

abcdezg opened this issue May 24, 2021 · 1 comment

Comments

@abcdezg
Copy link

abcdezg commented May 24, 2021

时间选择器,时间范围限制到2020年1月1日到2020年12月31日,选择1月31日,把月份滚动到2月时,出现了bug,月份自动滚动到了3月,3月变成只有29天。经过排查发现,设置选择月、日的时候,下面的方法默认会填充今年。

  • (nullable NSDate *)br_setMonth:(NSInteger)month day:(NSInteger)day;

bug fixed:
BRDatePickerView.m中
第1082行和第956行都改为以下代码即可:
self.mSelectDate = [NSDate br_setYear:[self.yearArr[self.yearIndex] intValue] month:month day:day];

@agiapp
Copy link
Owner

agiapp commented Jun 8, 2021

代码已提交,2.7.5最新版本因为CocoaPods账号原因暂时还没有上传,可以先直接使用
pod 'BRPickerView', :git => 'https://github.com/91renb/BRPickerView.git' pod最新版本。

@agiapp agiapp closed this as completed Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants