-
Notifications
You must be signed in to change notification settings - Fork 137
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
Current Date not colored #11
Comments
Sorry, I don't understand that... thx |
On the example project, current date was supposed to be red. But it only turns red if I select the current date and then selecting another date. Open the example, select todays date and then select another one, you will see |
It's changing to white when the selected date is the current date. if (self.currentDateColor && [self isToday]) {
[self.dateButton setTitleColor:self.currentDateColor forState:UIControlStateNormal];
} Actually you'd just need to change it to this to have the behaviour you want if (self.currentDateColor && [self isToday]) {
[self.dateButton setTitleColor:self.currentDateColor forState:UIControlStateSelected];
[self.dateButton setTitleColor:self.currentDateColor forState:UIControlStateNormal];
} but this looks really disgusting, that's why I didn't put that in first place. |
Current date only gets colored after I selecting the current date and then changing...
The text was updated successfully, but these errors were encountered: