JZCalendarWeekView icon indicating copy to clipboard operation
JZCalendarWeekView copied to clipboard

Crash in JZBaseWeekView.swift:130:55 getSectionWidth

Open ph1lb4 opened this issue 5 years ago • 3 comments

We get numerous crash reports that are caused by this getSectionWidth method.

ph1lb4 avatar Aug 09 '19 14:08 ph1lb4

We have also received a crash in closure #1 (Swift.Int, Swift.UnsafeMutablePointer<ObjectiveC.ObjCBool>) -> () in JZCalendarWeekView.JZWeekViewFlowLayout.prepareHorizontalTileSectionLayoutForSections(__C.NSIndexSet) -> ()

ph1lb4 avatar Aug 09 '19 15:08 ph1lb4

I will try to look through it this week.

zjfjack avatar Aug 13 '19 05:08 zjfjack

Since I did a bit refactoring work just now, is it crashed at var sectionWidth = contentViewWidth / CGFloat(numOfDays) ? Is it maybe because numOfDays equals 0?

It is really weird.

zjfjack avatar Aug 18 '19 11:08 zjfjack