Closed OrWest closed 8 years ago
I think you can fix the problem by:
instead of calling [self.calendarView addRange:range];
, directly assigned the ranges to the calendarView, like self.calendarView.ranges = [@[range1, range2] mutableCopy];
, then call [calendarView reload]
because addRange
internally will call [self.collectionView reloadItemsAtIndexPaths:indexPaths]
, and at that time, the collection view are not reloaded yet, so the constraints broke
Ok. I will try it. Thanks. Now i'm calling this method in viewWillAppear in dispath_async block. And it's working fine.
Hello, i have trouble with your view. When i set 10 ranges and set begin date to current date, constraints break.
Please, help me as soon as possible. I have to complete this screen yesterday.
Console:
Code to create: