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

BRDatePickerView中BRDatePickerModeCountDownTimer手动选取时间失败 #230

Open
liunianhuaguoyanxi opened this issue Apr 30, 2021 · 1 comment

Comments

@liunianhuaguoyanxi
Copy link

liunianhuaguoyanxi commented Apr 30, 2021

Demo复现:
Demo中TestViewController.m 305行
改为datePickerView.pickerMode = BRDatePickerModeCountDownTimer
并注释Demo中TestViewController.m 311行
//datePickerView.isAutoSelect = YES;

代码复现:
BRDatePickerView *datePickerView = [[BRDatePickerView alloc]init];
datePickerView.pickerMode = BRDatePickerModeCountDownTimer;
datePickerView.resultBlock = ^(NSDate *selectDate, NSString *selectValue) {
NSLog(@"selectValue=%@", selectValue);
NSLog(@"selectDate=%@", selectDate);
NSLog(@"---------------------------------");

};
[datePickerView show];

selectValue 永远为00:00

@agiapp
Copy link
Owner

agiapp commented May 28, 2021

pickerMode = BRDatePickerModeCountDownTimer时,不要设置minDatemaxDate

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