-
Notifications
You must be signed in to change notification settings - Fork 810
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
selectDates(dateArray, triggerSelectionDelegate: true, keepSelectionIfMultiSelectionAllowed: true) got random selection when we scroll #1022
Comments
I have the same problem. Is there any solution to this? |
without code, i cant tell anything.
|
func calendar(_ calendar: JTAppleCalendarView, cellForItemAt date: Date, cellState: CellState, indexPath: IndexPath) -> JTAppleCell {
let cell = calendar.dequeueReusableJTAppleCell(withReuseIdentifier: calenderCellIdentifier, for: indexPath) as! CalenderCollectionViewCell
cell.configCell(date: cellState.text)
handleCalendarTextColor(cell: cell, cellState: cellState)
return cell
} |
Can you show me code relavent to the visibility of your cells and how they work? What might help better is, have you taken a look at the sample applicaiton attached to this github project? |
import UIKit class CalenderViewController: UIViewController {
} extension CalenderViewController {
} extension CalenderViewController: JTAppleCalendarViewDelegate {
} extension CalenderViewController: JTAppleCalendarViewDataSource {
} |
func calendar(_ calendar: JTAppleCalendarView, willDisplay cell: JTAppleCell, forItemAt date: Date, cellState: CellState, indexPath: IndexPath) {
} Please implement the willDisplayCell function as stated here --> #553 |
@bivant is correct. |
[I'm not sure if this problem was opened before]
I'm currently using the latest version of JTAppleCalendar.
The problem is that when i have the array of date (dateArray), I use the dateArray in calendarView.selectDates(dateArray, ..., ...). Then when i scroll the calendarView, the selection just go random everywhere.
Note
CalendarView is Vertical + Paging is disable.
when i scroll it goes like this
The text was updated successfully, but these errors were encountered: