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

Delegate to set circleColor & textColor for selected date #75

Open
MarkMolina opened this issue Aug 27, 2015 · 1 comment
Open

Delegate to set circleColor & textColor for selected date #75

MarkMolina opened this issue Aug 27, 2015 · 1 comment

Comments

@MarkMolina
Copy link

Expected to have a delegate method to dynamically set custom color for the selected state as well like:

- (UIColor *)simpleCalendarViewController:(PDTSimpleCalendarViewController *)controller circleColorForSelectedDate:(NSDate *)selectedDate

and

- (UIColor *)simpleCalendarViewController:(PDTSimpleCalendarViewController *)controller textColorForSelectedDate:(NSDate *)selectedDate

Setting different colors here will only apply to the dates which is currently selected

This:
[[PDTSimpleCalendarViewCell appearance] setCircleSelectedColor:[UIColor orangeColor]];
[[PDTSimpleCalendarViewCell appearance] setTextSelectedColor:[UIColor purpleColor]];

alone won't help if you need different colors depending on the date.

@evan-masseau
Copy link

I'd like to see this feature too, or at least an option to disable the use of custom colors on Today's date and Selected date.
I'm using this library to implement a color coded calendar that does not need selection or to emphasize today's date and there does not seem to be a way to remove those styles.

Thanks

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