FFCalendar icon indicating copy to clipboard operation
FFCalendar copied to clipboard

XCode 7 - UICollectionViewFlowLayout Issue

Open bishalg opened this issue 9 years ago • 1 comments

Logging only once for UICollectionViewFlowLayout cache mismatched frame UICollectionViewFlowLayout has cached frame mismatch for index path NSIndexPath: {length = 2, path = 0 - 3} - cached value: {{439, 2}, {144, 120}}; expected value: {{440, 2}, {144, 120}} This is likely occurring because the flow layout subclass FFMonthCollectionViewFlowLayout is modifying attributes returned by UICollectionViewFlowLayout without copying them

I guess which results in missing Dates from Month Collection View

missing dates

bishalg avatar Oct 16 '15 02:10 bishalg

To fix missing dates i changed the following codes in FFMonthCell file

- (void)initLayout {
...
labelDay = [[UILabel alloc] initWithFrame:CGRectMake((imageViewCircle.frame.size.width-25.)/2., (imageViewCircle.frame.size.height-25.)/2., 25., 25.)];

bishalg avatar Oct 16 '15 02:10 bishalg