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

Change the colour of dates dynamically. #303

Closed
gabhisekdev opened this issue May 24, 2016 · 1 comment
Closed

Change the colour of dates dynamically. #303

gabhisekdev opened this issue May 24, 2016 · 1 comment

Comments

@gabhisekdev
Copy link

I have a scenario in which, I am getting a date array from my web-service for the current visible month in the calendar. I have to change the colour for these dates. I am able to do that initially with the help of the function calendar(calendar: FSCalendar!, appearance: FSCalendarAppearance!, titleDefaultColorForDate date: NSDate!) -> UIColor! .

Now when the user swipes to different month, I am getting another array of dates whose colour I need to change.

So is there any way to do so or call calendar(calendar: FSCalendar!, appearance: FSCalendarAppearance!, titleDefaultColorForDate date: NSDate!) -> UIColor! in calendarCurrentPageDidChange(calendar: FSCalendar!) ?

@WenchaoD
Copy link
Owner

calendar.reloadData()

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