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

Floating Section Header not scrolling with tableView after using MXParallaxHeader for the tableHeaderView #84

Closed
Tim77277 opened this issue Oct 27, 2017 · 8 comments
Labels

Comments

@Tim77277
Copy link

Tim77277 commented Oct 27, 2017

So I am facing this problem on my project. Somehow we must use UITableView with Plain Style and then dynamically adding table section header in to the tableView. And for the TableHeaderView of course I am using MXParallaxHeader. However, when I scroll the tableView up, my section header view got stock at the origin position while all cells are scrolling up. It is a very weird behavior I never seen before. I know #65 asked the same question but there is no a correct response. Please help. Thank you

@Tim77277
Copy link
Author

Tim77277 commented Nov 2, 2017

So I tried #65 solution again and it worked. Basically what you should do to make UITableView Section Header works with MXParallaHeader is to add UITableView into MXScrollView, assign your MXParallaxHeader (View) to the scrollView.parallaheader.view. And then set the correct scrollView.contentSize otherwise it won't be scrollable. This works well for my project, but the upcoming issue is that scrollView.parallaheader.minimumHeight doesn't work in this case. If someone know the solution, please share. Thanks

@TrungTuyenTran
Copy link

@Tim77277 I did that like you say , it worked . But It have a problem, when I scroll the list to the bottom , I can't keep scroll down although I set scrollView.bounces = true and collectionView.bounces = true. Did you get this problem?

@Tim77277
Copy link
Author

@TrungTuyenTran In my case, tableview was not scrollable until I set up the correct scrollView.contentSize and set collectionView and scrollView bounces = true, like you mentioned. But I was able to scroll to all the way down. Do you want to double check if your contentSize is correct?

@TrungTuyenTran
Copy link

TrungTuyenTran commented Jan 17, 2018

@Tim77277 How is correct ? How did you set contentsize for your tableview . I set scrollView.contentSize = collectionView.contentSize. Is that right? . In my case , collectionview also can scroll , but when scroll to bottom , you can't keep scroll down . I mean It stop in bottom at collectionView , you can't continue to scroll down.

@gaqraa
Copy link

gaqraa commented Feb 3, 2019

Same issue , any update

@Tim77277 I did that like you say , it worked . But It have a problem, when I scroll the list to the bottom , I can't keep scroll down although I set scrollView.bounces = true and collectionView.bounces = true. Did you get this problem?

@stale
Copy link

stale bot commented Aug 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 9, 2019
@stale stale bot closed this as completed Aug 16, 2019
@e-nicolas
Copy link

@Tim77277 I did that like you say , it worked . But It have a problem, when I scroll the list to the bottom , I can't keep scroll down although I set scrollView.bounces = true and collectionView.bounces = true. Did you get this problem?

Same problem here

1 similar comment
@e-nicolas
Copy link

@Tim77277 I did that like you say , it worked . But It have a problem, when I scroll the list to the bottom , I can't keep scroll down although I set scrollView.bounces = true and collectionView.bounces = true. Did you get this problem?

Same problem here

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

No branches or pull requests

4 participants