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

Using MXParallaxHeader in UITableView with headers #65

Closed
iDevo opened this issue Apr 1, 2017 · 11 comments
Closed

Using MXParallaxHeader in UITableView with headers #65

iDevo opened this issue Apr 1, 2017 · 11 comments
Labels

Comments

@iDevo
Copy link

iDevo commented Apr 1, 2017

Hi there,
I'd like to use MXParallaxHeader in my UITableView, which worked great until I started adding section headers.
The section header anchor point seems to be at the end of the ParallaxHeader, so the section headers stop there. Moreover the passed headers are moving above the HeaderView.

Is there a way to change this behaviour or a workaround?

Thanks in advance!

mxissue

@jyounus
Copy link

jyounus commented Apr 13, 2017

I'm after the same functionality. Did you manage to solve this @iDevo?

@maxep
Copy link
Owner

maxep commented Apr 13, 2017

The support of table view with sections have been removed because it removes the header touch on upward position, please refer to #40. As a workaround, you can embed your view controller in a MXScrollViewController, I havent tried yet but it should work.

@Ilya-Pak
Copy link

Ilya-Pak commented May 4, 2017

I did manage to make it work right by creating a scrollview and adding to it MXParallaxView and UITableView. But what I've notice is that when user start scrolling it accidently recongnize gesture as tap not swipe and calls actions like didSelectRow:
I think it's because both delegates of scrollview and tableview are hinder each other.
Do you have any ideas how to fix it?

And thanks a lot for this project! Great job!

@HoanPH
Copy link

HoanPH commented Sep 28, 2017

I have the same issue with section header.
In my case, i change table view style plain to group. After that, set heightForHeaderInSection, heightForFooterInSection in tableview delegate. The section header will not sticky when scroll.
Hope this help!

@leithonenglish
Copy link

@maxep How would u go about embedding the viewController in in the MxScrollViewController

@TrungTuyenTran
Copy link

I create a MXScrollView and put collectionView into MXScrollView. Set scrollView.parallaxHeader.view is "babysuccess" UIImageView . It can resolved this problem . But It have a new problem, when I scroll to bottom of collectionView , I can keep scroll down although I set bounces for scrollView and collectionView is true.

@janeshsutharios
Copy link

i Solved by contentView.layer.zPosition = 1

@minhchau273
Copy link

@janeshsutharios Which contentView did you mention above?

@jeremypiednoel
Copy link

@janeshsutharios Which contentView did you mention above?

tableView.parallaxHeader.contentView.layer.zPosition = 1

@janeshsutharios
Copy link

janeshsutharios commented Dec 19, 2018

@jeremypiednoel @minhchau273 in MXParallaxHeader/MXParallaxHeader.m - (void)layoutContentView method . write objc c equivalent code ( tableView.parallaxHeader.contentView.layer.zPosition = 1) at bottom of function.

@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
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

10 participants