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

Default Header Mode #15

Open
inPhilly opened this issue May 14, 2015 · 1 comment
Open

Default Header Mode #15

inPhilly opened this issue May 14, 2015 · 1 comment

Comments

@inPhilly
Copy link

Is there a way to use the header in default mode? I.e. for tableView scrolls up with tableview at non-parallax rate? I know it seems to defeat the purpose, but then the same header (VGParallaxHeader) could be used for both parallax and non-parallax header-views, or when there is somehow a need to switch between.

@stoprocent
Copy link
Owner

You can use same view for parallax header and normal table header

Instead of:

HeaderView *headerView = [HeaderView instantiateFromNib];
[self.tableView setParallaxHeaderView:headerView mode:VGParallaxHeaderModeCenter height:200];

Just do:

HeaderView *headerView = [HeaderView instantiateFromNib];
[self.tableView setTableHeaderView:headerView];

and set frame height to same as you were using in parallax header

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

No branches or pull requests

2 participants