1
votes

I use below code for getting zoom image in the scroll view.

  • (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView{ return photo; }

but i have problem when i click on next button and set new image it also zoomed. so it is possible the the next image is normal size. when i click on next button.

1

1 Answers

0
votes

Try reseting the Zoom after the next scroll

- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{

   [scrollView zoomToRect:(CGRect)rect animated:(BOOL)animated]
    // or
   [scrollView setZoomScale:(float)scale animated:(BOOL)animated]

}