Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCode 7 - UICollectionViewFlowLayout Issue #24

Open
bishalg opened this issue Oct 16, 2015 · 1 comment
Open

XCode 7 - UICollectionViewFlowLayout Issue #24

bishalg opened this issue Oct 16, 2015 · 1 comment

Comments

@bishalg
Copy link

bishalg commented Oct 16, 2015

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
Copy link
Author

bishalg commented Oct 16, 2015

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.)];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant