Jtapplecalendar: How to deselect a selected date cell without using 'allowsMultipleSelection'

Created on 26 Jun 2019  Â·  7Comments  Â·  Source: patchthecode/JTAppleCalendar

(Required) Version Number:

Description

I am working on a single selection [not multiple selection] and I could not find the way out for deselecting of a selected cell. I could do it only if i use calendarView.allowsMultipleSelection = true , however; I don't need that. Any help please. I got stuck with for quite so long!!

Steps To Reproduce

Expected Behavior

Additional Context

All 7 comments

I think I am using the wrong library. When I get stuck nobody else could solve me! bad me!

calendarView.deselectAllDates()

Does this not work for you?

calendarView.deselectAllDates()

Does this not work for you?

I just unable to deselect a selected cell without using calendarView.allowsMultipleSelection = true. Let me try your solution. Thank for your help!! :)

Screen Shot 2019-06-28 at 8 43 13 AM

ok.
If there are any other functions you do not know, check out the UserInteractionFunctions.swift file it has 90% of all the functions that developers are able to do with this library.

Here are some of the deselect functions

calendarView.deselect(dates: [date1, date2, date3] )
calendarView.deselectAllDates()
calendarView.deselectDates(from: date1, to: date2)

ok.
If there are any other functions you do not know, check out the UserInteractionFunctions.swift file it has 90% of all the functions that developers are able to do with this library.

Here are some of the deselect functions

calendarView.deselect(dates: [date1, date2, date3] )
calendarView.deselectAllDates()
calendarView.deselectDates(from: date1, to: date2)

So kind of you thanks

However, if you are using version 7.1.7, you should use deselectAllDates, because the other functions had a bug (which was fixed on master branch).
If you are using master branch however, the problem is already resolved there. I will be releasing master branch soon. Have a good one.

However, if you are using version 7.1.7, you should use deselectAllDates, because the other functions had a bug (which was fixed on master branch).
If you are using master branch however, the problem is already resolved there. I will be releasing master branch soon. Have a good one.

Noted with thanks! :)

Was this page helpful?
0 / 5 - 0 ratings