-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Can't change calendar today date #514
Comments
Seems working well under this commit |
WenchaoD, thanks for such a quick answer! I updated the piece of code and it worked, the circle moved perfectly, but I noticed that the today date hasn't effectively changed because when I move from one page than I get back to the page with the today mark it gets back to the old date, like in the video below: So I went through the code and replaced this piece of code:
With this:
Removing the if-clause solved my problem. Do you think that I will have big problems by changing this piece of code? |
@kallahir It seems that what I meant should be [_today isEqualToDate:today]. But that's not very necessary, you can simply remove it. I think it would work well. |
Ok, so I think it's done! Thank you very much! |
Corrected the problem in the following commit. #515 |
Hi,
I'm trying to change the today date using the NSCalendarDayChanged notification, but I'm not being able to do so. Does anyone knows how to do it?
Edit: I tried changing the date by setting:
When I set today like in the code above, the date value doesn't change but if I click in the day that I tried to set as the new today in the calendar the day gets marked as today and I get two todays at the same time, but if I navigate trough the calendar than gets back to the place where I had the "todays" the one that should be the right is gone and the old one is still there.
And by posting the notification that I found in some issues:
But none of those worked.
Best regards.
The text was updated successfully, but these errors were encountered: