Closed mciarlo closed 3 years ago
I noticed certain number of weeks calculations were failing so I attempted a fix.
JTDateHelper
numberOfWeeks:
NSCalendarUnitWeekOfMonth
setNeedsLayout
JTCalendarPageView
These two changes appear to resolve issues with the numberOfWeeksDisplayed set to 0
numberOfWeeksDisplayed
0
I noticed certain number of weeks calculations were failing so I attempted a fix.
JTDateHelper
methodnumberOfWeeks:
to useNSCalendarUnitWeekOfMonth
instead.setNeedsLayout
inJTCalendarPageView
to force the page to re-calculate the height of each week.These two changes appear to resolve issues with the
numberOfWeeksDisplayed
set to0