VGParallaxHeader icon indicating copy to clipboard operation
VGParallaxHeader copied to clipboard

Default Header Mode

Open inPhilly opened this issue 9 years ago • 1 comments

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.

inPhilly avatar May 14 '15 20:05 inPhilly

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

stoprocent avatar May 15 '15 11:05 stoprocent