Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Using with CollectionViewController #9

Closed
paulovap opened this issue Jul 3, 2014 · 7 comments
Closed

Using with CollectionViewController #9

paulovap opened this issue Jul 3, 2014 · 7 comments
Labels

Comments

@paulovap
Copy link

paulovap commented Jul 3, 2014

Hello, i tried to use it with a collectionView, but the headers appears behind the status bar when the navigationbar is hidden. Any suggestions?

@Mazyod
Copy link
Contributor

Mazyod commented Jul 4, 2014

@paulovap Hi! Thanks for reporting the issue.
I will look into this, but just to make sure I understand; you are referring to floating headers, right? Something like this: https://github.com/jamztang/CSStickyHeaderFlowLayout?

@Mazyod Mazyod added the bug label Jul 4, 2014
@paulovap
Copy link
Author

paulovap commented Jul 7, 2014

Yes, i made my own FlowLayout, but its similar to https://github.com/jamztang/CSStickyHeaderFlowLayout where the headers are sticky. With tableview the navigation bar hides normally and the tableview is kept below status bar as expected. But with collectioview it becomes hidden behind the status bar. Don't know if it is actually a bug, but i'm hoping for some guidance. Thank you in advance.

@Mazyod
Copy link
Contributor

Mazyod commented Jul 7, 2014

I see...

Currently, the component only changes the contentInsets of the scrollView subclass you attach to it (UICollectionView in your case), and it does so as soon as the view appears. So, if the headers are appearing behind the status bar, I would suggest you use the AACStatusBarHeight function inside the component to offset your headers in the layout code, so it doesn't overlap the status bar.

I can't think of anything else, because it seems the issue might be in the layout code.

@Mazyod
Copy link
Contributor

Mazyod commented Jul 9, 2014

@paulovap Can you please try settings extendedLayoutIncludesOpaqueBars to YES? That should resolve the problem. Credits goes to Tim Arnold.

@paulovap
Copy link
Author

paulovap commented Jul 9, 2014

Did not worked for me. I will try to use this layout project that you recommended and see if this works.

@paulovap
Copy link
Author

@Mazyod i managed to fix it on the FlowLayout! Thank you!

@Mazyod
Copy link
Contributor

Mazyod commented Jul 10, 2014

I am glad to hear that!

@Mazyod Mazyod closed this as completed Jul 10, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants