Comments (7)
Hi,
thanks for creating the issue! I just had a look and it happens because the tableview determines the top of the sticky section header view by using the contentInset, which is what the stretchy header is changing in the table view.
I will try to have a deeper look at it this afternoon and to be honest, I don't know if there is an easy/acceptable solution for this case, but as a workaround I would suggest you to use an UICollectionView because the headers in that case don't stick to the top.
Best regards
from gskstretchyheaderview.
I just stumbled upon this: http://stackoverflow.com/a/27562794/305582
It's a hack but it might also work.
from gskstretchyheaderview.
thank you, I found a workaround based on your link:
-
(void)scrollViewDidScroll:(UIScrollView *)scrollView {
CGFloat sectionHeaderHeight = 50; //My Section Heightif(scrollView.contentOffset.y >= -(_maximumScroll+sectionHeaderHeight) && scrollView.contentOffset.y <= -_minimumScroll) {
scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0);
}
}
So the section header remains sticky until the scroll raise the minimum height that I want.
You can link minimumScroll and maximumScroll to stretchHeaderView properties maximumContentHeight e minimumContentHeight.
The overlap problem is still present.
from gskstretchyheaderview.
Hi Fabio,
thanks for your feedback. The overlap bug can be easily solved, I hope I have time between today and tomorrow to fix it. Thanks for your report!
from gskstretchyheaderview.
Great! This can help us ? http://stackoverflow.com/questions/2457663/uitableview-section-headers-drawing-above-front-subview
https://slack-files.com/T0EV6LREK-F0RF1RG4Q-7b3746d3e2
from gskstretchyheaderview.
Hi @fabidona, I opened a new PR for this. The exact lines are these: https://github.com/gskbyte/GSKStretchyHeaderView/pull/6/files#diff-182b1c9af8bcc3d785ea41d07bfe093bR130
from gskstretchyheaderview.
great! it works like a charm
thank you for support
from gskstretchyheaderview.
Related Issues (20)
- TableView does not show the header
- Scalable Text Example is incorrect for iOS 14
- GSKStretchyHeaderView fixZPositions prevents subviews in the same UIScrollView from setting differing zPositions
- HeaderView is hidden at first run of the tableView. HOT 2
- Blank headerView HOT 4
- Header Overlaps Statusbar in iOS10. HOT 4
- Adjust height Dynamically HOT 9
- Can't reference GSKStretchyHeaderViewSubclass after install with Cocoa Pods HOT 11
- Header view label HOT 1
- Navbar Button issues in iPhone X HOT 1
- GSKStretchyHeaderView in Swift 4.1 with storyboad. HOT 3
- Header always collapse when set ContentInset for TableView HOT 2
- GSKStretchyHeaderView issue with insert or delete rows. HOT 1
- Redraw issue when in inactive tab HOT 5
- Refresh Control? HOT 2
- Refresh control above header?
- GSKStretchyHeaderView overlaps tableView and has no height HOT 1
- GSKStretchyHeaderView - Xamarin iOS HOT 1
- Drop shadow issue
- TableView section grouped HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gskstretchyheaderview.