VGParallaxHeader icon indicating copy to clipboard operation
VGParallaxHeader copied to clipboard

Move back and it scrolls to top

Open uzman opened this issue 9 years ago • 5 comments

Hi, there is a problem.

  • i scroll down,
  • open a detail view controller
  • then move back and scrollview always moves to top.

i tried it on iOS 7.1 and 8.3.

can you help?

uzman avatar May 14 '15 21:05 uzman

Can you attach some sample code. I cant help you without more details man

stoprocent avatar May 15 '15 11:05 stoprocent

i tried with your sample. i put a Button in scrollview (Scroll2 tab), it opens a new view controller.

-(IBAction)openTest:(id)sender{ TestViewController *vc = [[TestViewController alloc] initWithNibName:@"TestViewController" bundle:nil]; [self.navigationController pushViewController:vc animated:YES]; }

  • i scroll down first.
  • then open the test view controller when i swipe back, scrollview moves to top.

uzman avatar May 15 '15 12:05 uzman

Ok I will have a look and let you know :)

stoprocent avatar May 16 '15 08:05 stoprocent

Hi @stoprocent ! I have the same issue on the MXSegmentedPager. Going back on a navigation controller will cause a recall to setParallaxHeaderView:mode:height: which will add the header instead of replacing it. I guess the setParallaxHeaderView:mode:height: should remove the current header before setting a new one.

I take the occasion to thank you for this project. I've tried several parallax header to integrate, but your one was the most generic and well designed!

Maxime

maxep avatar May 22 '15 09:05 maxep

Guys Im so loaded at current work it's hard to find some time to address issues like this. I will try to find some time very soon

stoprocent avatar May 22 '15 11:05 stoprocent