JTAppleCalendar icon indicating copy to clipboard operation
JTAppleCalendar copied to clipboard

Crash on opening month view, if week view is hidden.

Open hitgupta opened this issue 6 years ago • 2 comments

I am using JTAppleCalendar in my App. So by default the calendar is in week mode. In my app I am hiding the calendar when the user scrolls up on the tableView. Also, there is an option to open the month view directly when the calendar is hidden. But when I try to open the month directly from the hidden state the app crashes. It seems that when the month view opens directly, 'cellStateFromIndexPath' gets called and it asserts a developer error as it doesn't find the indexPath valid. But, if I open the month view from week view it works fine. Seems like some bug in the calendar. Please help.

hitgupta avatar Oct 30 '19 12:10 hitgupta

are there any logs you can print please? On which line does it crash? Just a bit more information please.

patchthecode avatar Oct 30 '19 23:10 patchthecode

Screenshot 2019-10-31 at 9 58 37 AM The willDisplayCell method gets called, and after that there is an assertion. Attaching screenshots. Screenshot 2019-10-31 at 9 55 47 AM Screenshot 2019-10-31 at 9 56 06 AM Screenshot 2019-10-31 at 9 56 23 AM

hitgupta avatar Oct 31 '19 04:10 hitgupta