-
Notifications
You must be signed in to change notification settings - Fork 814
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
deselectAllDates with triggerSelectionDelegate: false and selectDates with triggerSelection false and keepSelection false not working after upgrading to Xcode 9 and iOS 11 #615
Comments
hey i think the link to you code gist is not working. Got the link? |
Also, did you implement a |
Try now. Also, no I don't implement shouldSelect or shouldDeselect, should I? |
@cazares ok i'll look at your code more in detail after work. Since you updated to the latest version. Did you implement the Let me know if you have done this? |
This one? |
Hey I fixed the problem by doing this in |
For this: |
Can you give an example how to change isSelected from |
OK. wait, i thought you were just doing a simple check to see if a cell was selected or not. I might have been mistaken. What are you doing with the |
Yes I am just looking for different ways to deselect and select a range of cells other than |
is it possible you can join chat here? https://gitter.im/patchthecode/JTAppleCalendar deselectAllDates(triggSelectionDelegate: false) and selectDates(from, to, triggerSelectionDelegate: false, keepSelectionIfMultiSelectionAllowed: false) Should work. If this does not work, then I need to fix something. Let's not do a work around for something as important as this. I fix issues no matter how small they seem. And this sounds like a huge issue.
Let me know when is a good time to join the chat. |
Yes I will join shortly. |
I know we have a chat later, but I just wanted to mention that I found out that reverting to any version of JTAppleCalendar between 7.0.0 and 7.0.6 all work. Version 7.1.0 is the first version where my functionality breaks, all the way up to 7.1.3 (all 7.1 versions are broken). |
Closing issue until user responds. |
I am using v7.1.2 of JTAppleCalendar
Yes, I'm using the latest.
First off, thank you so much for all the work you put into this library! I love it and so do our customers!
NOTE: this WAS working before. Upon upgrading to Xcode 9/iOS 11, this issue now happens where
deselectAllDates(triggerSelectionDelegate: false)
is not working. Also,
selectDates(from, to, triggerSelectionDelegate: false, keepSelectionIfMultiSelectionAllowed: false)
doesn't seem to work either. Let me try and explain my implementation a bit to better show you the issue.

Upon startup, the last 7 days are selected programmatically. Notice there's two synced textfields at the top showing from and to dates. This is working fine.
If I select a date outside the initial range, a new range is made with from and to equal to each other (this is the start of a new range). Notice that the synced textfields are correct, but Nov. 1 through Nov. 7 did not get deselected. This is the first issue.
The second issue is that selectDates isn't selecting a range of dates like it used to. Notice in this screenshot that we expect Mon, Oct 09 through Fri, Oct 13 to be the range, Oct 10, 11, and 12 are not selected.Here is a link to my gist including relevant code:
https://gist.github.com/cazares/d8f8da366e0fe803a15f5bcdb865a9eb
I've been working on this all day and I can't seem to get anywhere. Any help is greatly appreciated!
The text was updated successfully, but these errors were encountered: