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

issue with UICollectionElementKindSectionHeader #22

Closed
rk-ekalaya opened this issue May 30, 2016 · 2 comments
Closed

issue with UICollectionElementKindSectionHeader #22

rk-ekalaya opened this issue May 30, 2016 · 2 comments

Comments

@rk-ekalaya
Copy link

rk-ekalaya commented May 30, 2016

hello there,
at the first time i use KTCenterFlowLayout, it works fine, really good job. But since (I dont remember when, but i thougt it was since i update xcode, currently im on xcode 7.3.1), my collectionview cannot call - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath, so the header or footer will not gonna shown.
Everything goes as fine when i using UICollectionViewFlowLayout.
i tried to use UICollectionViewFlowLayouton viewdidload adn then use KTCenterFlowLayout on viewdidappear. what happen is the header/footer shown for a blink, before back to no header.

did I miss something here?

@Rodolfocartas
Copy link

I can confirm this bug after upgrading to 1.2, as my collection view with headers works just fine with 1.1.1.

@keighl
Copy link
Owner

keighl commented Jun 15, 2016

Thanks @rk-ekalaya, @Rodolfocartas. Appreciate the feedback. All it needed was some calls to super.layoutAttributesForSupplementaryViewOfKind for header and footer kinds. Lemme know if 1.3 works for you.

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

3 participants