Vinodh-G / ParallaxTableViewHeader

Parallax scrolling effect on UITableView header view when a tableView is scrolled
1.33k stars 170 forks source link

Take time to load the view #16

Open pinkal opened 8 years ago

pinkal commented 8 years ago

Hi, nice plugin. I have one issue. I have navigation controller. My root view controller is FirstView and SecondView contains tableview with parallaxTableViewHeader. Now when i push from FirstView to SecondView it will take time to push to SecondView. (parallaxtableviewheader setup takes time to load the second view) Can anyone give the suggestion to resolve this issue.

Thanks.

Vinodh-G commented 8 years ago

Try loading the Parallax Header in the viewDidAppear:

Move the below code to viewDidAppear:

`ParallaxHeaderView *headerView = [ParallaxHeaderView parallaxHeaderViewWithImage:[UIImage imageNamed:@"HeaderImage"] forSize:CGSizeMake(self.mainTableView.frame.size.width, 300)];

[self.mainTableView setTableHeaderView:headerView];`