ole / OLEContainerScrollView

A UIScrollView subclass that intelligently handles multiple child scroll views and does not interfere with UIKitʼs cell reuse functionality.
http://oleb.net/blog/2014/05/scrollviews-inside-scrollviews/
MIT License
587 stars 67 forks source link

Sticky UITableView section header is gone #14

Closed wonderffee closed 6 years ago

wonderffee commented 9 years ago

In your demo, if a section header is added to the tableview, it will not keep sticky, how can make it work?

ole commented 9 years ago

Actually, section headers do stick to the top, but the top of the table view is under the navigation bar in the demo app. If you hide the navigation bar, you will see that the header are sticky.

To make this work correctly, you would need to set an appropriate contentInset on the child table views. The problem is that then the table views are not being laid out correctly in the initial scroll position. We'll probably have to adjust -[OLEContainerScrollView layoutSubviews] accordingly to take content insets into account.

I can't promise when I will have time to look into this further.

ole commented 6 years ago

Closing this because I'm going to archive this project.