Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

Keep selected days highlighted after switched to next month and then back #38

Open
paoloq opened this issue Sep 13, 2017 · 6 comments
Open

Comments

@paoloq
Copy link

paoloq commented Sep 13, 2017

Hi,

I encountered an issue regarding days selection. When I select a sequence of days, switch to the next month and then I get back on the initial month, my selected days are not highlighted anymore.
I tried to force selection calling a select(), but unsuccessfully.
Am I doing something wrong? Do you know a workaround?
Thanks

@rjalkuino
Copy link

I have also issue regarding this. Can someone has workaround?

@loverde-co
Copy link

loverde-co commented Sep 19, 2017

Seams to be a problem withs this project, we cant select other month by using the method select()
#36 I post some like yours. And it is a 17 days without answere.
My Horrible solution is count how many month ago from current and use display(in:) to move to the month and then use select() for the day... terrible, but til now, is what work...

@stshelton
Copy link

Having the same problem. Any other workarounds?

@HenryHengZJ
Copy link

We can store dates using koyomi(_: didSelect: forItemAt), then using koyomi.select(dates: dates) to show them in previous or next month. Any thoughts? I have not tried this yet

@ricky1550
Copy link

Any solution for it anyone?

@uknowmeright
Copy link

I have found a temporary solution. It is a bit glitchy but works

 func selectTheProperDatesOnTheCalenderView(){
        for date in theDates{
            koyomi!.select(date: date)
        }
        self.koyomi!.reloadData()
    }

Store all of your selected dates in "theDates" array.

When the user changes the month call this function.

the Key here was calling koyomi!.reloadData()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants