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

setDefaultDate()设置默认时间问题 #10

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

setDefaultDate()设置默认时间问题 #10

BugRui opened this issue Apr 30, 2021 · 1 comment

Comments

@BugRui
Copy link

BugRui commented Apr 30, 2021

选择2月份后,下一次打开弹窗把上一次选中的时间作为默认时间setDefaultDate(),日期那一栏空了

@wzgl5533
Copy link

我的只能设置一次,多次设置,还是上一次的时间比如设置2023-07-01,2023-07-10
currentCalendar.time = date.toDate()//如date = 2023-07-01 datePicker?.setDefaultDate(currentCalendar)
如果我想设置2023-07-10,但是弹框的日历还是2023-07-01,我不明白咋回事。除非我datePicker置空,重新构建一次

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