Open TAIIOK opened 8 years ago
This one is break Calendar. I think this one is wrong
if (firstDayOfMonth.weekday() == 1){ totalNumber += 7 }
This just added additional 7 days to the calendar if it starts from Monday. So we have numberOfDayInMoth + 7
Working well \o/, thanks (I was missing the part in cellForItemAtIndexPath to make it work)
Note - firstWeekday (weekday == 1) is not always Monday ;)
This one is break Calendar. I think this one is wrong
if (firstDayOfMonth.weekday() == 1){ totalNumber += 7 }
This just added additional 7 days to the calendar if it starts from Monday. So we have numberOfDayInMoth + 7