JTAppleCalendar
JTAppleCalendar copied to clipboard
Single Row Calendar select the wrong index path
(Required) Version Number:
pod 'JTAppleCalendar', :git => 'https://github.com/patchthecode/JTAppleCalendar.git', :branch => 'master'
Description
I'm creating VC which contain TableViewController on the bottom and JTApplecalendar ( Singlerow ) on the top to mimic iPhone's Weekly calendar behaviour . Only one "Today" cell should be selected at a time.
The problem is when I want to setSelected the cell , and in that month reproduce outdate gap ( 29 - 30 - 31 - 1 - 2 -3 - 4 ) the selection index offset to + 3 , and I had no idea how to obtain those offset value for a certain month of the year which has inconsistent "outdated"
Also I had no idea how to set the cell "hi lighted" programmatically is it the same as "selected" ?
Steps To Reproduce
Download https://patchthecode.com/jtapplecalendar-home/week-view-month-view/
Expected Behavior
Single-row Calendar which can easily set selected cell , correctly select the cell with no interference from outdated
Additional Context
To ~~setSelected~~ select a cell programatically, simply call calendarView.selectDate(theDate).
The problem is when I want to setSelected the cell , and in that month reproduce outdate gap ( 29 - 30 - 31 - 1 - 2 -3 - 4 ) the selection index offset to + 3 , and I had no idea how to obtain those offset value for a certain month of the year which has inconsistent "outdated"
You might want to write this in another way. I do not understand what you mean. Maybe show me a screenshot? Just drag the screen shot image in this chat box.